• It's a bit of a hack at the moment - LEDs and Buttons are treated differently.

    The best method is to make your own jswrap_xx.c file, and to put something like this in it:

    /*JSON{
      "type" : "variable",
      "name" : "ADC",
      "generate_full" : "JSH_PORTD_OFFSET+1",
      "return" : ["pin","My ADC"]
    }*/
    
About

Avatar for Gordon @Gordon started