Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for esp8266 (nodemcuv2) #20

Closed
wants to merge 3 commits into from
Closed

Support for esp8266 (nodemcuv2) #20

wants to merge 3 commits into from

Conversation

jekkos
Copy link
Contributor

@jekkos jekkos commented Feb 14, 2023

Some minor changes I had to do to make it compile for ESP8266 in platformio. I still need to flash + test it.

@jekkos jekkos changed the title Support for ESP8266 Support for esp8266 (ESP01) Feb 14, 2023
@jekkos jekkos changed the title Support for esp8266 (ESP01) Support for esp8266 (esp01_1m) Feb 14, 2023
@jekkos
Copy link
Contributor Author

jekkos commented Apr 4, 2023

Tested it on a nodemcuv2, and works but together with #30

@ph1p
Copy link
Owner

ph1p commented Apr 5, 2023

Thank you! :) Could you please rebase to the latest changes of main? After that I will check and merge it.

@jekkos jekkos force-pushed the main branch 3 times, most recently from 8b99df2 to cb8b356 Compare April 5, 2023 21:48
src/main.cpp Show resolved Hide resolved
@jekkos
Copy link
Contributor Author

jekkos commented Apr 6, 2023

Thanks for merging all open PRs, I rebased with main and reflashed my nodemcuv2. I had to add one more switch for the weather to compile, it works now again on my device.

@jekkos jekkos changed the title Support for esp8266 (esp01_1m) Support for esp8266 (nodemcuv2) Apr 6, 2023
@jekkos
Copy link
Contributor Author

jekkos commented Jun 26, 2023

It seems that latest changes in main are now breaking esp8266. Some functionality is used for interrupts specific to esp32

  hw_timer_t *Screen_timer = timerBegin(0, 80, true);
  timerAttachInterrupt(Screen_timer, &onScreenTimer, true);
  timerAlarmWrite(Screen_timer, 200, true);
  timerAlarmEnable(Screen_timer);

Will try to figure out what is the equivalent for the older chip. @ph1p am I correct that wiring does not change when using SPI for screen updates? The code that sets the brightness now uses more efficient library that pushes the bits to the shift register (and with brightness value)?

jekkos added 3 commits July 9, 2023 18:53
Fail gracefully if weather fetch fails

Enable ota upload nodemcuv2

Use ESP8266 SPI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants