Compare commits

...

3 Commits

Author SHA1 Message Date
1f3fee9285 Add vscode files. 2023-08-22 14:34:13 +02:00
2b9a168e3e Updated Readme, LICENSE. 2023-08-22 14:32:47 +02:00
e9f95591bc Restructuring, refactoring. 2023-08-22 14:32:09 +02:00
8 changed files with 11 additions and 57 deletions

4
.gitignore vendored
View File

@@ -4,8 +4,10 @@
# VS Code
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/extensions.json
.vscode/ipch
.vscode/launch.json
.vscode/settings.json
# Own folders
_unused/

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2023 Techniccontroller
Copyright (c) 2023 Techniccontroller, Ranse
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,3 +1,7 @@
# Important Note:
This project has been unofficially forked from https://github.com/techniccontroller/wordclock_esp8266 which was initially created by techniccontroller. Copyright and licensing is respected.
# Wordclock 2.0
Wordclock 2.0 with ESP8266 and NTP time
@@ -53,58 +57,6 @@ Please download all these libraries as ZIP from GitHub, and extract them in the
- https://github.com/tzapu/WiFiManager
- https://github.com/adafruit/Adafruit_BusIO
folder structure should look like this:
```
MySketchbookLocation
└───libraries
│ └───Adafruit-GFX-Library
│ └───Adafruit_NeoMatrix
│ └───Adafruit_NeoPixel
│ └───WiFiManager
│ └───Adafruit_BusIO
└───wordclock_esp8266
│ wordclock_esp8266.ino
│ (...)
|
└───data
│ index.html
| (...)
|
└───icons
```
## Upload program to ESP8266 with Arduino IDE
#### STEP1: Installation of Arduino IDE
First, the latest version of the Arduino IDE needs to be downloaded and installed from here.
#### STEP2: Installation of ESP8266 Arduino Core
To program the ESP8266 with the Arduino IDE, you need to install the board information first in Arduino IDE. To do that follow the following instructions:
- Start Arduino and open the File -> Preferences window.
- Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into the Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
![image](https://user-images.githubusercontent.com/36072504/169649790-1b85660e-8c7d-4dfe-a63a-5dfd9862a5de.png)
- Open Boards Manager from Tools > Board menu and search for "esp8266".
- Click the install button.
- Dont forget to select your ESP8266 board from Tools > Board menu after installation (e.g NodeMCU 1.0)
![image](https://user-images.githubusercontent.com/36072504/169649801-898c4819-9145-45c5-b65b-52f2689ab646.png)
#### STEP3: Upload a program to ESP8266
- Open wordclock_esp8266.ino in Arduino IDE
- Connect ESP8266 board with Computer
- Select right serial Port in Tools -> Port
- Click on the upload button in the Arduino IDE to upload the program to the ESP8266 Module.
![image](https://user-images.githubusercontent.com/36072504/169649810-1fda75c2-5f4d-4d71-98fe-30985d82f7f5.png)
## Remark about the WiFi setup

View File

@@ -1,5 +1,5 @@
#include <Arduino.h>
#include "animationfunctions.h"
#include "animation_functions.h"
#include "wordclock_constants.h"
#include "udp_logger.h"
#include "ledmatrix.h"

View File

@@ -33,7 +33,7 @@
#include <WiFiUdp.h>
// own libraries
#include "animationfunctions.h"
#include "animation_functions.h"
#include "pong.h"
#include "snake.h"
#include "tetris.h"
@@ -44,7 +44,7 @@
#include "otafunctions.h"
#include "udp_logger.h"
#include "wordclock_constants.h"
#include "wordclock_functions.h"
#include "render_functions.h"
// DEBUG
uint32_t dbg_counter = 0; // TODO RM