Commit Graph

26 Commits

Author SHA1 Message Date
REAS
9ec706889f Removing DoubleDict DoubleList LongDict LongList from Reference 2019-07-26 15:47:21 -07:00
gohai
a7e2d6f122 IO: Unify ADC examples 2018-07-26 00:25:12 -07:00
gohai
a21e5a280e IO: Add ADS1X15 Analog-to-Digital converter example 2018-07-26 00:25:06 -07:00
gohai
cbdfb06c99 IO: Add a dispose method to PCA9685 example, document pulse widths
Developed together with @OlivierLD
2018-07-12 13:27:30 -07:00
gohai
89c7a24152 IO: Rename ServoSweep example 2018-07-01 10:05:18 -07:00
Olivier LeDiouris
9843d1c88d IO: Add PCA9685 servo/PWM controller example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:05:18 -07:00
Olivier LeDiouris
5db3ec9227 IO: Add TSL2561 environmental sensor example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:05:18 -07:00
Olivier LeDiouris
2e05386994 IO: Add BME280 environmental sensor example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:05:18 -07:00
gohai
8aa1f803c4 IO: Add MPR121 capacitive touch example 2018-07-01 10:05:18 -07:00
gohai
67c4f3bd9d IO: Reorganize OOP examples 2018-07-01 10:05:18 -07:00
gohai
aba636275c IO: Clarify SimpleInput example
As suggested by @msurguy
2018-06-26 19:12:51 -07:00
gohai
de2cac9860 IO: Implement Raspbian-only method for setting pull{up,down} resistors
Aarch64 version compiled courtesy of @xranby
2018-06-18 07:38:30 -07:00
gohai
5ff162e20a IO: Invert OLED example
This makes bright pixels be illuminated on the display.
2017-04-05 14:52:22 +02:00
gohai
1df221200b IO: Update I2CScreen example
Hardcode i2c interface, add background, fix indentation
2017-04-03 18:18:46 +02:00
gohai
9025ecee4e IO: Remove superfluous super in examples 2017-02-26 15:26:32 +01:00
gohai
dbdeb9cf66 IO: We want motors, they said (implements SoftwareServo)
Some measurements with a logic analyzer and the Raspberry Pi 2
sleep: 0.001500, measured avg: 0.0015357, measured 0.95 perc.: 0.0015573
sleep: 0.0185, measured avg: 0.0186177, measured 0.95 perc.: 0.0186345

servo_pulse_oversleep was set to account for the (expected) overhead of waking up and toggling the pin with help from the numbers above.
2016-06-23 19:52:14 +02:00
gohai
ef1490566b IO: Fix LedCounter example 2016-05-05 19:27:19 +02:00
gohai
0d9d2d22d5 IO: Add an example that shows how to use a digital pin and a capacitor to measure resistive sensors 2016-04-04 21:01:20 +02:00
gohai
29f797bb79 IO: Add an 8-channel ADC example using the MCP3008 2016-04-03 17:37:49 +02:00
gohai
50be2983e2 IO: Add an OLED display example 2016-04-03 17:37:49 +02:00
gohai
102f55b29d IO: Add comments pointing to wiring diagrams 2016-02-14 11:37:30 +01:00
gohai
c30aa85ab9 IO: Use GPIO numbers in examples
Even the Raspberry Pi Foundation used GPIO numbers over (congruous) physical pin numbers:
https://www.raspberrypi.org/learning/introduction-to-processing/worksheet-2/

Switch our examples as well, so that it they're more clear and hardware-agnostic.
2016-02-14 01:07:37 +01:00
gohai
622e907d68 I/O: Comment fix 2015-10-12 17:02:16 +02:00
gohai
06799bb757 I/O: Move GPIO examples away from I2C pins
It appears as if using the I2C pins for GPIO requires a restart of the Raspberry Pi before the I2C interface can be used again. Play safe and move the examples to pins that aren't used for anything else.
2015-10-12 17:00:49 +02:00
gohai
3ddf2d773c I/O: Remove casts to byte from example sketches 2015-10-12 16:59:04 +02:00
gohai
bc02e4b7b6 I/O: Add examples 2015-10-12 00:11:55 +02:00