- Change timing from millisecond to microsecond... yes, it can't really do command in 1 uS (47uS overhead, so 3D is 50uS) but this allows sub millisecond timing down to 50uS so that is quite useful. This required that all the internal variables become longs because 1 second is 1000000D. Unsigned because we don't do negative.
- Added ability to clock in data as well as out. Data read is a bit slower than write because of the time to transmit the character.
- Added I2C start and stop commands. e.g.
5,11(-__-_--_. ........ .)
starts with clock on pin 5 and data on 11, sends 10010110, gets ack, 8 bits data, ack, and stops. It returns the data as binary. It might be nice to return the data as a decimal value in addition to the binary, but I would have to use something to separate out acks and data. Maybe space?
-Multiple bug fixes. Space /really/ does nothing now. Clock pulses go up /after/ the data.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
3rd version:
- Change timing from millisecond to microsecond... yes, it can't really do command in 1 uS (47uS overhead, so 3D is 50uS) but this allows sub millisecond timing down to 50uS so that is quite useful. This required that all the internal variables become longs because 1 second is 1000000D. Unsigned because we don't do negative.
- Added ability to clock in data as well as out. Data read is a bit slower than write because of the time to transmit the character.
- Added I2C start and stop commands. e.g.
5,11(-__-_--_. ........ .)
starts with clock on pin 5 and data on 11, sends 10010110, gets ack, 8 bits data, ack, and stops. It returns the data as binary. It might be nice to return the data as a decimal value in addition to the binary, but I would have to use something to separate out acks and data. Maybe space?
-Multiple bug fixes. Space /really/ does nothing now. Clock pulses go up /after/ the data.
Are you sure? yes | no
Why not Firmata?
Are you sure? yes | no
"Not a replacement for Firmata as this is intended to be used by a human directly via serial monitor or terminal, not from a program"
Are you sure? yes | no
Oh, understood, makes sense =)
Are you sure? yes | no