1.0.5
----
* @pdp7 (5):
* Merge pull request #153 from MarkAYoder/master
* Fix print syntax to avoid python3 errors
* Merge pull request #160 from MarkAYoder/master
* document how to read QEP1
* Update rotary-encoder-eqep-test.md
* @MarkAYoder (20):
* Have GP0_1 working
* Removed --force to speed things up
* Added GP0 1, 2 and 3
* Flashes 4 LEDs
* Works with button
* Blinks red and gree LEDs
* Blinks all 6 GPIOs
* Added red and green LEDs
* i2c works
* PWD isn't working, yet
* Added port setup
* Switched to apt install
* Added tmp101 to name
* Added LED matrix example
* Removed newline from print
* Added fade
* Adding GPIO defs for uart1
* Testing UT1_0, not working yet
* Switched GP0_0 to GP0_3, etc.
* Added PAUSE and MODE buttons.
Version 1.0.4: bug fixes and enhancements from last 6 months
- @djsutton (1):
- fix TypeError: function takes exactly 3 arguments (2 given) from wait_for_edge
- @pdp7 (29):
- Instruct users to open GitHub issue instead email
- add udev rules and script for non-root access to gpio
- fix file descriptor leak in gpio_set_value()
- document how to test read and write to all GPIO pins
- reduce ADC reads in pytest from 10,000 to 1,000
- close file descriptor to avoid leak
- remove conditional logic for ctrl_dir and ocp_dir size
- increase size of ctrl_dir and ocp_dir for future use
- Document how to run config-pin at boot
- Document how to test eQEP with Rotary Encoder
- Add skeleton for Encoder module to read eQEP
- Add code to Encoder.QEP from PyBBIO.RotaryEncoder
- Adapt code from PyBBIO.RotaryEncoder
- add test for rotary encoder
- read from eqep position file
- return position from getPosition()
- document howo to enable all the eqep pins
- Document how to test eqep pins with rotary encoder
- run config-pin to set pin mux for qep
- update QEP test
- update QEP test for issue #122
- Test if kernel booted wit u-boot overlays
- check if kernel cmdline for uboot overlay
- Add documentation about u-boot overlays
- Return BBIO_OK when u-boot overlays ared enabled
- remove debug printing
- Skip check for device tree loaded if u-boot overlays enabled
- Sleep after loading ADC overlay to allow driver load
- Workaround test failure until TIMERn bug is fixed
- @ltjax (3):
- Use lookup table to prevent duplicate pin export
- Handle already exported pins
- Fix build_path memory leak
- @Vadim-Stupakov (1):
- Fixed issue #145 GPIO library doesn't free GPIO file descriptor. File descriptor leak. Made a little bit refactoring
- @cocasema (8):
- Declare PHONY targets in root Makefile
- Extract BBIO_err into a separate header
- Add syslog and debugging messages
- Add libadafruit-bbio with C++ wrappers for PWM/GPIO
- Add 2 versions of library with c++98 and c++11 abi
- Install header files properly
- Add default values to pwm::start() method.
- Add PWM c++ tests
- @zsserg (2):
- Added error checking for setting pin direction in gpio.setup() (Python)
- Added debug output to set_pin_mode()
GitHub issue #133 was raised by @archey:
Compilation issues due to strict aliasing
These errors occured when building with gcc 6.3:
```
gcc -pthread -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-all --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DBBBVERSION41 -I/usr/include/python2.7 -c source/py_gpio.c -o build/temp.linux-x86_64-2.7/source/py_gpio.o -Wall -Werror -Wextra -Wno-missing-field-initializers
source/py_gpio.c: In function ‘py_event_detected’:
source/py_gpio.c:433:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Py_RETURN_TRUE;
^~~~~~~~~~~~~~
source/py_gpio.c:435:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Py_RETURN_FALSE;
^~~~~~~~~~~~~~~
source/py_gpio.c: In function ‘py_wait_for_edge’:
source/py_gpio.c:479:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Py_RETURN_FALSE;
^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
error: command 'gcc' failed with exit status 1
```
Py_RETURN_TRUE and Py_RETURN_FALSE are part of the Python C API:
https://docs.python.org/2/c-api/bool.html
Version 1.0.2: bug fixes and minor improvements:
- Merge pull request #130 from adafruit/issue129-usr-leds [1439133]
- Add support for alternate USR LED labels
- Merge pull request #131 from adafruit/fix-gcc-warnings [f0ee018]
- Fix gcc warnings
- Merge pull request #132 from buckket/setup_unicode_fix [4c67dfc]
- Make use of io.open() with explicit file encoding in setup.py
TODO: fix source the actual cause of the warning:
source/common.c:344:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]