ecrowneeng / esp-simhub Goto Github PK
View Code? Open in Web Editor NEWSimHub firwmare for ESP8266 and ESP32
SimHub firwmare for ESP8266 and ESP32
I've had no success using some specific GPIO on an ESP32, mainly 17-18-19 (and some more).
Found out the fix is quite simple tho.
The code is storing the gpio BIT equivalent in a u8 instead of u32 (or u16??) in FastDigitalPin.
Some gpio bit are outside of u8 range and end up being set as 0.
I've made this change to both Bit and Port while debugging and it seem to fix it.
I'm not really setup to send a PR easily, but wouldn't mind one bit if a similar fix was PRd by someone else :).
Probably need some ifdef for ESP32 vs ESP8266 in the mix.
Hope that helps
Got a report saying that it's not working. I never tested this because it never works for me (router config maybe?). Worth checking, as it's a very useful feature.
Does the dicord group still available,I think I got a a lot of problem with the ESP32 and the 3.5 TFT screen,and I need heip
is it possible to connect nextion display ?
GPIO_NUM_XX definitions are missing for the esp8266 platform.
Hotfix: use the GPIO pin number as value. Example:
#define WS2812B_DATAPIN GPIO_NUM_2
=> doesn't work on esp8266
#define WS2812B_DATAPIN 2
=> should work just fine at the moment
Either move dependencies to proper versions or add instructions on how to install git
i use INCLUDE_SHAKEITL298N for rumble pedals. do not use TX or RX pins, because simhub can't connect to the esp if you use TX or RX. BUT one issue is there. Simhub lists 3 motors (Arduinos -> My Devices), but the code is declared with 2 motors
After setting up the esp8266 to use the local WiFi and starting to use it with SimHub, the esp8266 for unknown reasons freezes/stops/resets when SimHub tries to contact it. The only module enabled is the WS2812b module with 114 LEDs. I am currently trying to find the root of the problem, will update the issue when i have any success.
It may be caused by a too eager flush and incorrect expectations of the vector of clients.
Hey there,
I'd love to use this sketch, but I can't bypass this issue whie compilating:
FastLED throws an error in fastpin.h: error: assertion failed: Invalid pin specified
Cannot find any help online to bypass this, FastLED 3.40 is installed as recommended.
Already did a fresh install of vs code.
Any help, pease?
Thanks
I don't know why.. WiFi only adds complexity to the communication and yet, it makes it work.
People not using IDE shortcuts may just remove the ;
manually and be left with an invalid platformio.ini
file.
example:
; [env:esp32]
; foo=bar
--->
Notice the prefixed space
[env:esp32]
foo=bar
Not sure if this was tested on more than one MCU, but i've tried two different variations and two different computers and neither worked.
Tried it on a few of these:
https://www.amazon.com/gp/product/B09F8JJS61/
I tried different configurations in the platformio.ini, different ports, different baud rates, different PCs, differnet board IDs (Nodemcu 0.9, v2, etc). different usb cables, ports, nothing works.. Platformio is able to flash the MCU, but Simhub fails on "Uploading.." with:
avrdude.exe: stk500v2_ReceiveMessage(): timeout
And if i select a different board on the Simhub list:
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 1 of 10: not in sync: resp=0x46
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.