Nodepp : Stable Release : V1.2.0
- π: Node.js-like API: Write C++ code in a syntax and structure similar to Node.js, making it easier to learn and use.
- π: Embedded-compatible: Compatible with several devices like Arduino UNO | Esp8266 | Esp32 | Stm32
- π: High-performance: Leverage the speed and efficiency of C++ for demanding applications.
- π: Scalability: Build applications that can handle large workloads and grow with your needs.
- π: Open-source: Contribute to the project's development and customize it to your specific requirements.
#include <nodepp.h>
using namespace nodepp;
void onMain(){
for( auto x: ptr_t<uchar>({ 12, 13 }) ){
pinMode( x, OUTPUT );
}
process::add( coroutine::add( COROUTINE(){
static bool state = false;
coBegin
for(;;){
digitalWrite( 12, state );
coDelay(300); state =! state; }
coFinish
}));
process::add( coroutine::add( COROUTINE(){
static bool state = false;
coBegin
for(;;){
digitalWrite( 13, state );
coDelay(1000); state =! state; }
coFinish
}));
}