nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32

Home Page:https://nodemcu.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ads1115 startread callback function is not optional

athompson673 opened this issue · comments

commented

Setting an interrupt on the alert pin with an appropriate callback function, and calling startread() with no callback results in an error.

> adc:startread()
Lua error: 	stdin:1: bad argument #1 to 'startread' (Must be function)

This is contrary to the docs.. Was this a regression, or was this simply never an option?