diff --git a/docs/ioRoles.md b/docs/ioRoles.md index 6658bb886..35ddeccb7 100644 --- a/docs/ioRoles.md +++ b/docs/ioRoles.md @@ -86,8 +86,8 @@ Do not add anything here, as it will overwritten with next rebuild. | DS1820_IO | vers simple OneWire Temp sensor DS1820 | | PWM_ScriptOnly | | | PWM_ScriptOnly_n | | -| Counter_f | | -| Counter_r | | +| Counter_f | Counts pulses on falling edge (transition from high to low). Each transitions adds 1 to linked channel. | +| Counter_r | Counts pulses on rising edge (transition from low to high). Each transitions adds 1 to linked channel. | | IRRecv_nPup | IRRecv without pull-up | | StripState | This is an output pin which has current led_enableAll value | | StripState_n | This is an output pin which has negation of current led_enableAll value | diff --git a/docs/json/ioRoles.json b/docs/json/ioRoles.json index 7784f4727..fe034e333 100644 --- a/docs/json/ioRoles.json +++ b/docs/json/ioRoles.json @@ -650,7 +650,7 @@ { "name": "Counter_f", "title": "TODO", - "descr": "", + "descr": "Counts pulses on falling edge (transition from high to low). Each transitions adds 1 to linked channel.", "enum": "IOR_Counter_f", "file": "new_pins.h", "driver": "" @@ -658,7 +658,7 @@ { "name": "Counter_r", "title": "TODO", - "descr": "", + "descr": "Counts pulses on rising edge (transition from low to high). Each transitions adds 1 to linked channel.", "enum": "IOR_Counter_r", "file": "new_pins.h", "driver": "" diff --git a/src/new_pins.h b/src/new_pins.h index 6e9b5e8e1..92251e51f 100644 --- a/src/new_pins.h +++ b/src/new_pins.h @@ -576,14 +576,14 @@ typedef enum ioRole_e { IOR_PWM_ScriptOnly_n, //iodetail:{"name":"Counter_f", //iodetail:"title":"TODO", - //iodetail:"descr":"", + //iodetail:"descr":"Counts pulses on falling edge (transition from high to low). Each transitions adds 1 to linked channel.", //iodetail:"enum":"IOR_Counter_f", //iodetail:"file":"new_pins.h", //iodetail:"driver":""} IOR_Counter_f, //iodetail:{"name":"Counter_r", //iodetail:"title":"TODO", - //iodetail:"descr":"", + //iodetail:"descr":"Counts pulses on rising edge (transition from low to high). Each transitions adds 1 to linked channel.", //iodetail:"enum":"IOR_Counter_r", //iodetail:"file":"new_pins.h", //iodetail:"driver":""}