ESP32 wemos to read tsl2561

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Posts: 18
Joined: Sun Sep 16, 2018 6:33 pm

ESP32 wemos to read tsl2561

Post by » Sun Sep 16, 2018 6:59 pm

I am trying to interface tsl2561 with ESP32 wemos (ESP-WROOM-32).
Which micropython library is available for ESP32 wemos ?

I tried to install tsl2561,

>>> upip.install("tsl2561")
Installing to: /lib/
Warning: SSL certificate is not validated
Error installing 'tsl2561': , packages may be partially installed

Whats is the correct name/way to install this package ?

User avatar
Posts: 3411
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

Re: ESP32 wemos to read tsl2561

Post by pythoncoder » Mon Sep 17, 2018 8:32 am

That method of installation only works if the module is on PyPi. Further, upip requires a special format in order to work on the ESP8266 so only modules with names like "micropython-xyz" are likely to be compatible.

The MicroPython driver is not on PyPi. It's here. Just copy the file to your device.
Peter Hinch

Post Reply