You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 24, 2017. It is now read-only.
OctalBoneScript is mostly API compatible with actual bonescript. There are a few changes which you should keep in mind though.
43
-
44
-
* Pins P8_7, P8_8, P8_9 have to be denoted as P8_07, P8_08, P8_09 in your code.
45
-
*```pinMode``` function now takes only 3 arguments. Please also note that this function is fully __asynchronous__ and non-blocking therefore always use callback to know whether the pinMode execution has occured successfully. Its format is: ```pinmode(pin, direction, callback)```. Additional direction variable ```INPUT_PULLDOWN``` is also added. It asserts mode automatically and sets slew rate as fast by default.
46
-
* v1.0.0 introduces ```pinModeSync``` function which is fully synchronous and blocking function. If your code requires this kind of functionality, you have the option to use it.
47
-
*```startAnalog(pin, callback)``` and ```stopAnalog(pin, callback)``` function added to start/stop analog output on pin.
48
-
*__All callbacks now follow ```callback(err, resp)``` format as per NodeJs standards. This is a major BC break in v1.0.0. The previos format was ```callback(resp)```__
49
-
*```serialOpen``` and ```i2cOpen``` should now be used as ```serial.open``` and ```i2c.open```. Please check docs forlder for examples on this.
50
-
* Any serial or I2C capes are no longer required if you use OctalBoneScript. Just using above serial and I2C functions will be sufficient.
51
-
52
-
53
30
We encourage you to report issues rightaway if you face any. We will try our best to be of help.
0 commit comments