- precalculate clock idle polarity and remove clockOn()/clockOff()
- check for higher (unknown) modes and reject them
- move internal functions down, to be grouped together
- idle clock on Connect
Improve support for RPi 1, 2, 3, add support for Zero, Zero Wireless and the Compute Modules.
Removes rpi.Version since it doesn't make much sense anymore, as it more closely related to
the CPU than the actual board.
Fixes#139
Ran:
git sed 's/pio/periph/g
git sed 's/gperiph/gpio/g'
git sed 's/Gperiph/Gpio/g'
git sed 's/PIO/Periph/g'
git sed 's/GPeriph/GPIO/g'
git mv pio.go periph.go
git mv pio_test.go periph_test.go
cd cmd
git mv pio-info periph-info
git mv pio-setup periph-setup
where 'git sed' is an alias to run sed over all files in git ls-files.
Fixes#11.
make the i2c address of bme280 configurable
The address can either be 0x76 or 0x77. It depends on hardware configuration.
If you connect SDO to GND its 0x76
If you connect SDO to V(DDIO) its 0x77.
* Add me to the authors.
* the bme280 cmd uses the new address option
* initialize default addr on definition