If you look at gordon77's code example, the value of x is increased every time the GPIO.Input(29) is true. This is done by the line "x += 1" which means add 1 to the current value of x.
Kodi is not illegal. It is Kodi Plugins that allow the free streaming of shows from subscription services that are legally questionable.
Code: Select all
from brightpi.brightpilib import *