Skip to content

Nodepp : Stable Release : V1.2.0

Latest

Choose a tag to compare

@EDBCREPO EDBCREPO released this 25 Aug 17:17
· 2 commits to main since this release

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
    }));

}