Search found 2 matches

by legionnet
Wed Sep 06, 2017 6:12 am
Forum: ESP8266 boards
Topic: Esp8285 GPIO 7 and 8
Replies: 1
Views: 1967

Esp8285 GPIO 7 and 8

Firmware for esp8266 work fine on esp8285 board but I can't use GPIO 7 and 8. I see error "invalid pin number".

My device is Sonoff 4ch.
by legionnet
Wed Feb 01, 2017 12:44 pm
Forum: General Discussion and Questions
Topic: MicroPython round() Function
Replies: 20
Views: 26275

Re: MicroPython round() Function

I use esp8266-20170108-v1.8.7 firmware. I need to get the temperate and humidity from DHT22 (AM2301) with round. But round() function does not always work. My code: ds.measure() tem = round( float( ds.temperature() ), 1 ) hum = round( float( ds.humidity() ), 1 ) Output: (2017, 2, 1, 15, 37, 48, 2, 3...