ArduinoNative

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit c233b20467710534aead5cec849d6e3eb7bc0e5e
parent 48f6ad8248c097d0843ba2a721492ce247ae269c
Author: Samdal <samdal@protonmail.com>
Date:   Sun, 27 Jun 2021 19:20:05 +0200

updated README

Diffstat:
MArduinoNative.hpp | 3+--
MREADME.org | 13++++++++++++-
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/ArduinoNative.hpp b/ArduinoNative.hpp @@ -47,7 +47,6 @@ typedef enum { #define AN_DEBUG_DIGITALWRITE #define AN_DEBUG_ANALOGREAD #define AN_DEBUG_ANALOGWRITE -#define AN_DEBUG_TIMESTAMP #endif /* BOARD DEFINITIONS */ @@ -118,10 +117,10 @@ unsigned long micros(void); unsigned long millis(void); // Math -#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt))) #define map(x, fL, fH, tL, tH) ((x - fL) * (tH - tL) / (fH - fL) + tL) #define min(a,b) ((a)<(b)?(a):(b)) #define max(a,b) ((a)>(b)?(a):(b)) +#define constrain(x, low, top) (max(min(x, low), top)) #define sq(x) ((x)*(x)) // Characthers diff --git a/README.org b/README.org @@ -81,12 +81,23 @@ Serial.an_take_input() #+END_SRC ** Extra debug features Debug features can be enabled by defining the following macros +- *AN_DEBUG_TIMESTAMP*: Prints a timestamp in milliseconds in front of all debug messages - *AN_DEBUG_ALL*: Enables everything below - *AN_DEBUG_DIGITALREAD*: Prints a message to console when digitalRead is called - *AN_DEBUG_DIGITALWRITE*: Prints a message to console when digitalWrite is called - *AN_DEBUG_ANALOGREAD*: Prints a message to console when analogRead is called - *AN_DEBUG_ANALOGWRITE*: Prints a message to console when analogWrite is called -- *AN_DEBUG_TIMESTAMP*: Prints a timestamp in milliseconds in front of all debug messages +* Roadmap +** DONE Basic functionality +** DONE Debug options +** DONE more complete functionality +** DONE test Windows support +** DONE Serial full functionality +** DONE String object +** TODO Complete rest of Arduino Library +** TODO Support more boards +** TODO Debug schedules +** TODO Debug viewer to show pin status instead of Serial * More examples ** Serial and AnalogRead #+BEGIN_SRC C++