mirror of
https://github.com/thearn/Python-Arduino-Command-API.git
synced 2026-04-24 03:00:20 -04:00
updated readme
This commit is contained in:
@@ -329,6 +329,12 @@ class Arduino(object):
|
|||||||
pin (int): pin to use as capacitive sensor
|
pin (int): pin to use as capacitive sensor
|
||||||
|
|
||||||
Use it in a loop!
|
Use it in a loop!
|
||||||
|
DO NOT CONNECT ANY ACTIVE DRIVER TO THE USED PIN !
|
||||||
|
|
||||||
|
the pin is toggled to output mode to discharge the port,
|
||||||
|
and if connected to a voltage source,
|
||||||
|
will short circuit the pin, potentially damaging
|
||||||
|
the Arduino/Shrimp and any hardware attached to the pin.
|
||||||
'''
|
'''
|
||||||
cmd_str="@cap%"+str(pin)+"$!"
|
cmd_str="@cap%"+str(pin)+"$!"
|
||||||
self.sr.write(cmd_str)
|
self.sr.write(cmd_str)
|
||||||
|
|||||||
@@ -155,9 +155,9 @@ response_char = board.SoftwareSerial.read() #read response character
|
|||||||
- Expand software serial functionality (`print()` and `println()`)
|
- Expand software serial functionality (`print()` and `println()`)
|
||||||
- Add simple reset functionality that zeros out all pin values
|
- Add simple reset functionality that zeros out all pin values
|
||||||
- Add I2C / TWI function support (Arduino `Wire.h` commands)
|
- Add I2C / TWI function support (Arduino `Wire.h` commands)
|
||||||
- <del> Add `tone()` / `noTone()` squarewave generator support for piezo type speakers</del> currently testing code for this (thanks to Sjoerd Dirk Meijer.)
|
- <del> Add `tone()` / `noTone()` squarewave generator support for piezo type speakers currently testing code for this (thanks to Sjoerd Dirk Meijer.)
|
||||||
-(sdmeijer) Add Python-code for Tone/NoTone.
|
-(sdmeijer) Add Python-code for Tone/NoTone.</del>
|
||||||
- Include a wizard which generates 'prototype.ino' with selected serial baud rate and Arduino function support
|
- Include a wizard which generates 'prototype.ino' with selected serial baud rate and Arduino function support
|
||||||
(to help reduce memory requirements).
|
(to help reduce memory requirements).
|
||||||
- Multi-serial support for Arduino mega (`Serial1.read()`, etc)
|
- Multi-serial support for Arduino mega (`Serial1.read()`, etc)
|
||||||
- (sdmeijer) Add capacitive sensors (http://playground.arduino.cc/Code/CapacitiveSensor)
|
- <del>(sdmeijer) Add capacitive sensors (http://playground.arduino.cc/Code/CapacitiveSensor)</del>
|
||||||
|
|||||||
Reference in New Issue
Block a user