Search found 8 matches

by RedDirt
Mon Dec 28, 2020 1:00 am
Forum: General Discussion and Questions
Topic: ESP32 WiFi Mesh
Replies: 0
Views: 1530

ESP32 WiFi Mesh

Anyone have any experience and/or example code of setting up a WiFi mesh connection with the ESP32 boards? I have several ESP32's but primarily work with the TinyPico board because its small, very capable and breadboard friendly. I have a few of them and would like to set up a WiFi mesh with them. A...
by RedDirt
Wed Dec 23, 2020 3:27 pm
Forum: Programs, Libraries and Tools
Topic: Writing A Sensor Library/Driver
Replies: 7
Views: 4529

Re: Writing A Sensor Library/Driver

This is rather long, and I have not read through the whole thing as of yet, but it appears to be a good document on porting/writing libraries for sensors.

https://www.digikey.fi/fi/maker/project ... 1725f28b1b
by RedDirt
Wed Dec 23, 2020 4:42 am
Forum: ESP32 boards
Topic: dotENV Files
Replies: 3
Views: 2608

Re: dotENV Files

I had forgotten about this post. Having come across it again, I thought I would share what I ended up doing. I created a file which I named config.py and uploaded that the ESP32 board. Within that file I would add any credentials, API keys, etc. that I would need. For example: WIFI_SSID = 'myssid' W...
by RedDirt
Tue Dec 22, 2020 2:04 pm
Forum: Programs, Libraries and Tools
Topic: Writing A Sensor Library/Driver
Replies: 7
Views: 4529

Re: Writing A Sensor Library/Driver

You're my hero. How/Where did you learn to do that?
shaoziyang wrote:
Tue Dec 22, 2020 1:26 pm
You can refer to my micropython library:

https://github.com/micropython-Chinese- ... ty/mpy-lib
by RedDirt
Tue Dec 22, 2020 12:23 pm
Forum: Programs, Libraries and Tools
Topic: Writing A Sensor Library/Driver
Replies: 7
Views: 4529

Re: Writing A Sensor Library/Driver

Since making this post I have been trying to find some simple device that uses I2C that I could attempt to write a library for, for the experience and the experience of it. However, I am coming up short. Does anyone have some ideas? I need to start with something relatively simple, not something lik...
by RedDirt
Wed Dec 16, 2020 8:34 am
Forum: Programs, Libraries and Tools
Topic: Writing A Sensor Library/Driver
Replies: 7
Views: 4529

Re: Writing A Sensor Library/Driver

Outstanding! Thank you cqqlzpy. There is a nice talk about that: An Introduction to Hardware Drivers in Micro Python To sum up: Understand the datasheet Know how to write/read to/from the sensor registers (it varies a bit depending on the protocol used I2C/SPI/UART) Also understanding bitwise operat...
by RedDirt
Tue Dec 15, 2020 6:19 am
Forum: Programs, Libraries and Tools
Topic: Writing A Sensor Library/Driver
Replies: 7
Views: 4529

Writing A Sensor Library/Driver

If one were so inclined to take a stab at writing the code for a library to work with a particular sensor, where would you start? I'd like to especially learn how to port a library that is available for Arduino but not yet for Micropython. Where would one start on this journed? What information woul...
by RedDirt
Sat Nov 28, 2020 4:49 am
Forum: ESP32 boards
Topic: dotENV Files
Replies: 3
Views: 2608

dotENV Files

Is there a native way in Micropython to read a .env file? I know there are third-party packages out there for Python, but I was hoping there was something native to Micropython so I could read credentials and API keys from there instead of hard coding them into the script.