16 Commits
Author SHA1 Message Date
schmidtsi76327 bff8cdbeb7 compress errors :) 2021-06-23 17:30:15 +02:00
schmidtsi76327 d8343ea91f Merge branch 'master' of https://git.efi.th-nuernberg.de/gitea/schmidtsi76327/ESP8266_Treppenlicht 2021-06-23 17:26:28 +02:00
schmidtsi76327 78f09b3a3b compress 2021-06-23 17:26:22 +02:00
schmidtsi76327 bd0e364d22 delete compress files 2021-06-23 17:24:54 +02:00
bartschdo76253 32266b5f37 Merge branch 'master' of https://git.efi.th-nuernberg.de/gitea/schmidtsi76327/ESP8266_Treppenlicht 2021-06-23 17:20:22 +02:00
schmidtsi76327 b62f4f9f95 changed gitignore 2021-06-23 17:16:16 +02:00
bartschdo76253 a8af7543ba deleted headers 2021-06-23 17:15:22 +02:00
schmidtsi76327 85f8da3476 reorganize 2021-06-23 17:12:44 +02:00
schmidtsi76327 f323bd4cf9 reorganize 2021-06-23 17:12:40 +02:00
Pupsmuckel 708bb2cda4 Merge branch 'master' of https://git.efi.th-nuernberg.de/gitea/schmidtsi76327/ESP8266_Treppenlicht 2021-06-23 17:01:53 +02:00
Pupsmuckel a4196bb579 Änderung 2021-06-23 17:01:47 +02:00
schmidtsi76327 908c4298be Merge branch 'master' of https://git.efi.th-nuernberg.de/gitea/schmidtsi76327/ESP8266_Treppenlicht 2021-06-23 17:01:34 +02:00
schmidtsi76327 6e885673b8 e 2021-06-23 17:01:08 +02:00
bartschdo76253 93cc958800 Merge branch 'master' of https://git.efi.th-nuernberg.de/gitea/schmidtsi76327/ESP8266_Treppenlicht 2021-06-23 16:57:11 +02:00
bartschdo76253 9d30423ca3 variable PWM step calculation 2021-06-23 16:51:15 +02:00
schmidtsi76327 b3b11d0818 reorder main, add ota.h 2021-06-23 16:49:53 +02:00
13 changed files with 235 additions and 430 deletions

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
.pio
.vscode
compress
platformio.ini
include/wifi_credentials.h
include/*.gz.h
-59
View File
@@ -1,59 +0,0 @@
// filename: favicon.png.gz.h
#define favicon_png_gz_len 554
const char favicon_png_gz[] = {
0x1F, 0x8B, 0x08, 0x00, 0xB2, 0x41, 0xD3, 0x60, 0x02, 0xFF,
0x01, 0x13, 0x02, 0xEC, 0xFD, 0x89, 0x50, 0x4E, 0x47, 0x0D,
0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44,
0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08,
0x06, 0x00, 0x00, 0x00, 0x1F, 0xF3, 0xFF, 0x61, 0x00, 0x00,
0x01, 0xDA, 0x49, 0x44, 0x41, 0x54, 0x38, 0x4F, 0x85, 0x93,
0x4F, 0x68, 0x13, 0x41, 0x14, 0x87, 0xBF, 0xB7, 0xD9, 0xFC,
0xB1, 0x0A, 0xD5, 0x56, 0x8A, 0x20, 0xA8, 0xA1, 0xBA, 0x49,
0x05, 0x7B, 0x89, 0x20, 0xEA, 0x41, 0x04, 0x8F, 0xE2, 0x55,
0x29, 0x78, 0xB3, 0x60, 0x0F, 0xA2, 0x07, 0x3D, 0x6E, 0x90,
0xA4, 0x37, 0x3D, 0xE9, 0x41, 0xD4, 0xB3, 0x07, 0x3D, 0x79,
0x15, 0xC1, 0x83, 0x60, 0x35, 0xC5, 0x4B, 0xD4, 0xA6, 0x26,
0x39, 0x94, 0x1E, 0xA4, 0x20, 0x82, 0xB5, 0x75, 0xDB, 0x24,
0xBB, 0x3B, 0x23, 0xBB, 0x21, 0xD5, 0xAE, 0x9B, 0x74, 0x4E,
0x33, 0xEF, 0xFD, 0x7E, 0xDF, 0xCC, 0x7B, 0x33, 0x23, 0xC4,
0x0C, 0xFD, 0x75, 0xF6, 0x24, 0xA2, 0xEF, 0x00, 0x67, 0x00,
0x03, 0x98, 0x47, 0xEB, 0xFB, 0x92, 0x2F, 0xBE, 0x8B, 0xCA,
0x25, 0x1A, 0xD0, 0xCD, 0xD2, 0x35, 0x94, 0x3C, 0x02, 0xCC,
0x48, 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 0x2E, 0x2C, 0x55,
0x13, 0x02, 0x00, 0x00};
-46
View File
@@ -1,46 +0,0 @@
// filename: index.html.gz.h
#define index_html_gz_len 428
const char index_html_gz[] = {
0x1F, 0x8B, 0x08, 0x00, 0xB2, 0x41, 0xD3, 0x60, 0x02, 0xFF,
0xB5, 0x54, 0xC1, 0x4E, 0xE3, 0x30, 0x10, 0xBD, 0x23, 0xED,
0x3F, 0x0C, 0xBE, 0xB7, 0xA1, 0x2B, 0x6D, 0xC5, 0x21, 0xED,
0x05, 0x38, 0x83, 0xB4, 0x5C, 0xF6, 0x54, 0x39, 0xCE, 0x34,
0x31, 0x38, 0xB6, 0x65, 0x4F, 0x4B, 0xBB, 0x5F, 0x8F, 0x33,
0x71, 0x69, 0x60, 0xB3, 0x88, 0x0B, 0x97, 0x78, 0xEC, 0xF7,
0xFC, 0xDE, 0x1B, 0x27, 0x4E, 0x79, 0x79, 0x7B, 0x7F, 0xF3,
0xF8, 0xE7, 0xE1, 0x0E, 0x5A, 0xEA, 0xCC, 0xFA, 0xC7, 0x45,
0x99, 0x47, 0x80, 0xB2, 0x45, 0x59, 0x73, 0x95, 0x6A, 0xD2,
0x64, 0x70, 0x7D, 0xF7, 0xFB, 0xE1, 0xFA, 0xE7, 0x72, 0x09,
0x8F, 0x01, 0xBD, 0x47, 0x6B, 0xB4, 0x6A, 0xA9, 0x2C, 0x06,
0x2C, 0x13, 0x2F, 0x67, 0x33, 0xE8, 0xA4, 0xB6, 0x10, 0xE9,
0x68, 0x10, 0x62, 0x8B, 0x48, 0x30, 0x9B, 0x9D, 0x60, 0xA3,
0xED, 0x33, 0xB4, 0x01, 0xB7, 0x2B, 0x51, 0x6C, 0xE5, 0x5E,
0x2B, 0x67, 0xE7, 0xDE, 0x36, 0x02, 0x02, 0x9A, 0x95, 0xE8,
0xA7, 0x02, 0xE8, 0xE8, 0x31, 0xD5, 0x9D, 0x6C, 0xB0, 0x60,
0x2C, 0xEA, 0xBF, 0x18, 0x57, 0x62, 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AB,
0x2B, 0x01, 0x7B, 0x69, 0x76, 0x09, 0xFF, 0x95, 0xCA, 0x6C,
0xC7, 0xD4, 0x21, 0xBC, 0x60, 0x17, 0x5E, 0x58, 0x7C, 0xE5,
0x7D, 0x90, 0xEE, 0x30, 0x7C, 0x9A, 0x35, 0x33, 0xBE, 0x31,
0x2D, 0x3B, 0x6C, 0x06, 0x85, 0xC9, 0xC8, 0xE3, 0x9A, 0x9F,
0xC3, 0x25, 0xC8, 0x9F, 0x3E, 0x4F, 0xA2, 0x0A, 0xDA, 0x13,
0xC4, 0xA0, 0xD2, 0x8D, 0xE2, 0x60, 0xF3, 0xA7, 0xC8, 0xEF,
0x90, 0x01, 0xA6, 0xA5, 0x6B, 0x33, 0xFC, 0x1E, 0x5E, 0x01,
0xA6, 0x28, 0x83, 0xDC, 0x38, 0x04, 0x00, 0x00};
-24
View File
@@ -1,24 +0,0 @@
// filename: input.js.gz.h
#define input_js_gz_len 205
const char input_js_gz[] = {
0x1F, 0x8B, 0x08, 0x00, 0xB2, 0x41, 0xD3, 0x60, 0x02, 0xFF,
0x7D, 0xCF, 0x31, 0x0B, 0xC2, 0x30, 0x10, 0x05, 0xE0, 0x3D,
0x90, 0xFF, 0x70, 0x38, 0xB5, 0x4B, 0x8B, 0xB3, 0xB8, 0x88,
0x82, 0x82, 0x6E, 0x3A, 0xCB, 0xD1, 0x9C, 0x6D, 0x20, 0xBD,
0x94, 0xF4, 0x52, 0x29, 0xE2, 0x7F, 0xB7, 0xB6, 0x75, 0x10,
0xC4, 0xED, 0x86, 0xEF, 0xF1, 0xDE, 0x75, 0x18, 0xA0, 0x75,
0xD6, 0x50, 0x80, 0x35, 0x18, 0x5F, 0xC4, 0x9A, 0x58, 0xB2,
0x92, 0x64, 0xE7, 0xE8, 0x7D, 0x6E, 0xFA, 0x83, 0x49, 0x16,
0x01, 0xB9, 0xA4, 0xE5, 0x22, 0x5D, 0x69, 0xD5, 0x0D, 0x01,
0x1F, 0xA5, 0x89, 0xF2, 0x2F, 0xE0, 0xAE, 0xCD, 0xBD, 0x1E,
0xFD, 0x64, 0x33, 0xCB, 0x4C, 0x61, 0x7F, 0x3E, 0x1D, 0x87,
0xD4, 0xD4, 0x97, 0x75, 0xE8, 0x22, 0xAD, 0x20, 0xCF, 0x61,
0x6B, 0xDB, 0xC6, 0x61, 0x0F, 0x52, 0x11, 0x18, 0xBA, 0x61,
0x74, 0xF2, 0x19, 0x35, 0x22, 0xAD, 0xB4, 0x1A, 0xD8, 0xA5,
0x31, 0x28, 0x34, 0xAA, 0x22, 0x86, 0x30, 0x94, 0x7D, 0x29,
0x48, 0x08, 0x8B, 0x0A, 0xC4, 0xD6, 0x04, 0xBD, 0x8F, 0x60,
0x02, 0x96, 0x23, 0x9E, 0x51, 0x85, 0x6C, 0x1C, 0xA5, 0x5A,
0xCD, 0xFD, 0x9E, 0x2D, 0x4F, 0x6F, 0xDC, 0x22, 0x17, 0x62,
0x3D, 0x27, 0x29, 0x3C, 0xB4, 0x02, 0xF8, 0xB1, 0x59, 0x2A,
0xDB, 0xCE, 0x8B, 0xB5, 0x7A, 0xBE, 0x00, 0x11, 0xEE, 0x3B,
0x97, 0x36, 0x01, 0x00, 0x00};
-98
View File
@@ -1,98 +0,0 @@
// filename: style.css.gz.h
#define style_css_gz_len 948
const char style_css_gz[] = {
0x1F, 0x8B, 0x08, 0x00, 0xB2, 0x41, 0xD3, 0x60, 0x02, 0xFF,
0xBD, 0x55, 0x4B, 0x6F, 0xDB, 0x38, 0x10, 0xBE, 0x1B, 0xF0,
0x7F, 0x18, 0xB4, 0x58, 0x20, 0xEE, 0x5A, 0xAE, 0xF2, 0xD8,
0x2C, 0xA0, 0x9C, 0x82, 0xB4, 0xDD, 0x1C, 0xB6, 0x28, 0xB0,
0xC9, 0x61, 0xAF, 0x14, 0x35, 0xB2, 0x88, 0x50, 0xA2, 0x40,
0x52, 0xB1, 0xDD, 0x22, 0xFF, 0x7D, 0x87, 0xA4, 0x24, 0xEB,
0xE1, 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x07, 0x98, 0x5C, 0x90, 0x97, 0xA9, 0xB6,
0x0A, 0x56, 0x65, 0x12, 0xE1, 0x8C, 0xAC, 0x7A, 0x70, 0x70,
0x76, 0x57, 0x68, 0x55, 0xE2, 0x1A, 0xBE, 0xD4, 0xA8, 0xD9,
0x1A, 0x1E, 0x58, 0xCE, 0xB4, 0x58, 0xC3, 0xC7, 0x6C, 0x8B,
0x2B, 0x20, 0x0F, 0x1A, 0x31, 0xF5, 0x95, 0xEC, 0x3E, 0x09,
0x4D, 0xAA, 0xDE, 0xAF, 0x68, 0x07, 0x83, 0x9A, 0x4A, 0x4D,
0x2A, 0xF5, 0xB4, 0x9A, 0x97, 0x9E, 0x74, 0x69, 0xC2, 0x39,
0xB2, 0x45, 0x53, 0xA6, 0xDF, 0xD3, 0xF2, 0x29, 0x29, 0xBB,
0xF8, 0xFF, 0x41, 0xC4, 0x7E, 0x97, 0x76, 0x4D, 0x67, 0x60,
0x82, 0x52, 0xF9, 0x84, 0x80, 0x53, 0xEA, 0x3E, 0x7A, 0x8E,
0x4C, 0x5F, 0x53, 0x78, 0x37, 0x31, 0x7E, 0x75, 0xC0, 0x47,
0x89, 0x25, 0xAD, 0xFB, 0x53, 0xD2, 0x6E, 0xB7, 0x5F, 0x2B,
0x6D, 0xAC, 0xE6, 0xDA, 0x9E, 0xFE, 0xD5, 0x39, 0xD3, 0x3B,
0x7F, 0x37, 0x96, 0xD4, 0xCB, 0x8C, 0x5F, 0xD7, 0x1B, 0x7F,
0x33, 0xE4, 0xF6, 0xE7, 0xB0, 0xF1, 0xC3, 0x20, 0xFE, 0x03,
0xF9, 0xD5, 0xDB, 0xFC, 0xD4, 0x0A, 0x00, 0x00};
+3
View File
@@ -31,5 +31,8 @@ def convert_to_gzip(src, out, f):
src='data/'
out='compress/'
if not 'compress' in os.listdir():
os.mkdir('compress')
for f in os.listdir(src):
convert_to_gzip(src, out, f)
+47 -29
View File
@@ -1,38 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<title>ESP8266 Treppenlicht</title>
<!-- main style sheet -->
<link href="/favicon.png" rel="icon" type="image/png" sizes="10x10">
<link href="/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="kopfzeile"
style="text-align: center;">
<b>Treppenlicht</b>
</div>
<div class="ueberschrift">
<head>
<title>ESP8266 Treppenlicht</title>
<!-- main style sheet -->
<link href="/favicon.png" rel="icon" type="image/png" sizes="10x10">
<link href="/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="kopfzeile" style="text-align: center;">
<b>Treppenlicht</b>
</div>
<div class="ueberschrift">
<center>Helligkeit</center>
<div class="slider">
<label id="label_pwm">
</label>
<input type="range" class="testregler" min="0" max="100">
</div>
<div class="slider">
<label id="label_pwm">
</label>
<input type="range" class="testregler" min="0" max="100">
</div>
<br>
<div class="ueberschrift">
</div>
<div class="ueberschrift">
<center>Helligkeit bei Dunkelheit</center>
<div class="slider">
<label id="label_geschwindigkeit">
</label>
<input type="range" class="testregler" min="0" max="100">
</div>
</div>
<br>
<div class="ueberschrift">
<center>Laufgeschwindigkeit</center>
<div class="slider">
<label id="label_geschwindigkeit">
</label>
<input type="range" class="testregler" min="0" max="100">
</div>
<div class="slider">
<label id="label_geschwindigkeit">
</label>
<input type="range" class="testregler" min="0" max="100">
</div>
</body>
</div>
<br>
<div class="ueberschrift">
<center>Licht-An-Zeit</center>
<div class="slider">
<label id="label_geschwindigkeit">
</label>
<input type="range" class="testregler" min="0" max="100">
</div>
</div>
<script src="/input.js"></script>
</html>
</body>
<script src="/input.js"></script>
</html>
+4 -7
View File
@@ -26,7 +26,7 @@ html {
.testregler{
-webkit-appearance: none;
height: 20px;
height: 30px;
width: 98%;
border-radius: 20px;
outline: black;
@@ -44,12 +44,9 @@ html {
input[type=range]::-webkit-slider-thumb{
-webkit-appearance: none;
border:none;
height: 100px;
width: 100px;
background:goldenrod;
margin-top: -15px;
border-radius: o!important;
height: 30px;
width: 4%;
border-radius: 30px;
}
.kopfzeile{
+9 -1
View File
@@ -52,4 +52,12 @@ if(p.endsWith(".gzip")) {
}
else
server.streamFile(f, mime::getContentType(SRH::_path), requestMethod);
```
```
Webserver on v0.3.0 now working with LittleFS
TODO:
- check dir for files automatic
- move handleNotFound to httpserver.h
- maybe compress files ?
+48
View File
@@ -0,0 +1,48 @@
#ifndef __OTA_H
#define __OTA_H
void ota_setup() {
ArduinoOTA.setPort(8266);
ArduinoOTA.setHostname("ESP_Treppenlicht");
ArduinoOTA.setPassword("admin");
// Password can be set with it's md5 value as well
// MD5(admin) = 21232f297a57a5a743894a0e4a801fc3
// ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3");
ArduinoOTA.onStart([]() {
String type;
if (ArduinoOTA.getCommand() == U_FLASH) {
type = "sketch";
} else { // U_FS
type = "filesystem";
}
// NOTE: if updating FS this would be the place to unmount FS using FS.end()
Serial.println("Start updating " + type);
});
ArduinoOTA.onEnd([]() {
Serial.println("\nEnd");
});
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
});
ArduinoOTA.onError([](ota_error_t error) {
Serial.printf("Error[%u]: ", error);
if (error == OTA_AUTH_ERROR) {
Serial.println("Auth Failed");
} else if (error == OTA_BEGIN_ERROR) {
Serial.println("Begin Failed");
} else if (error == OTA_CONNECT_ERROR) {
Serial.println("Connect Failed");
} else if (error == OTA_RECEIVE_ERROR) {
Serial.println("Receive Failed");
} else if (error == OTA_END_ERROR) {
Serial.println("End Failed");
}
});
ArduinoOTA.begin();
}
#endif // __OTA_H
View File
Whitespace-only changes.
+123 -166
View File
@@ -1,40 +1,68 @@
#include <Arduino.h>
// debugging support via GDBStub over UART
#ifdef WITH_DEBUGGING_ON
#include <GDBStub.h>
#include <GDBStub.h> // debugging support via GDBStub over UART
#endif
#include "PCA9685.h"
extern "C" {
#include "user_interface.h"
extern "C" {
#include "user_interface.h"
}
#define ESP12_LED 2
#define NODEMCU_LED 16
// OTA & WEB
#include "wifi_credentials.h"
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "ota.h"
#include "wifi_credentials.h"
#include "httpserver.h"
// BOARD
#define ESP12_LED 2
#define NODEMCU_LED 16
// PWM
os_timer_t timer1;
uint8_t timer_flag = 0;
PCA9685 pwmController;
void setup_pwm_pca9685();
// WIFI
const char* ssid = STASSID;
const char* password = STAPSK;
os_timer_t timer1;
int timer_arg;
// PWM
uint32_t dimmtimer = 0;
uint16_t time_per_stair = 500; // global parameter: dimmtime per stair [ms]
uint8_t direction = 1;
uint8_t onoff = 1;
void setup_ota();
void setup_pwm_pca9685();
void ledsequence(uint8_t direction, uint8_t onoff);
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval);
void timerCallback(void *pArg)
{
*((int *) pArg) += 1;
ledsequence(direction, onoff);
// Serial.print("[");
// Serial.print(micros()-m);
// Serial.print("] timerCallback\n");
// m = micros();
}
// HTTP
void handleNotFound();
const int led = 13;
HTTPServer httpServer(80, "/");
uint32_t _t=0;
#define SP_US(_str,_a) Serial.print(_str); Serial.print(" took: "); Serial.print(_a); Serial.println("us")
#define TIMEIF_US(_f, _l, _str) _t=micros(); _f; _t=micros()-_t; if(_t > _l) { SP_US(_str, _t); }
// ===============================================
void handleNotFound() {
String message = "File Not Found\n\n";
message += "URI: ";
@@ -52,53 +80,6 @@ void handleNotFound() {
httpServer.send(404, "text/plain", message);
}
PCA9685 pwmController;
void setup_ota() {
ArduinoOTA.setPort(8266);
ArduinoOTA.setHostname("ESP_Treppenlicht");
ArduinoOTA.setPassword("admin");
// Password can be set with it's md5 value as well
// MD5(admin) = 21232f297a57a5a743894a0e4a801fc3
// ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3");
ArduinoOTA.onStart([]() {
String type;
if (ArduinoOTA.getCommand() == U_FLASH) {
type = "sketch";
} else { // U_FS
type = "filesystem";
}
// NOTE: if updating FS this would be the place to unmount FS using FS.end()
Serial.println("Start updating " + type);
});
ArduinoOTA.onEnd([]() {
Serial.println("\nEnd");
});
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
});
ArduinoOTA.onError([](ota_error_t error) {
Serial.printf("Error[%u]: ", error);
if (error == OTA_AUTH_ERROR) {
Serial.println("Auth Failed");
} else if (error == OTA_BEGIN_ERROR) {
Serial.println("Begin Failed");
} else if (error == OTA_CONNECT_ERROR) {
Serial.println("Connect Failed");
} else if (error == OTA_RECEIVE_ERROR) {
Serial.println("Receive Failed");
} else if (error == OTA_END_ERROR) {
Serial.println("End Failed");
}
});
ArduinoOTA.begin();
}
void setup_pwm_pca9685() {
pwmController.resetDevices(); // Software resets all PCA9685 devices on Wire line
@@ -109,121 +90,66 @@ void setup_pwm_pca9685() {
}
uint32_t dimmtimer = 0;
uint8_t direction = 1;
uint8_t onoff = 1;
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval){
void ledsequence(uint8_t direction, uint8_t onoff, uint8_t factor);
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval, uint8_t factor);
/*
softstart task
uint8_t flag = 0;
void timer_callback(void *pArg)
{
*((int *) pArg) += 1;
flag = 1;
}
- get's called at regular intervals (1ms at the moment)
- dimms single led (0 - 15, PCA9685 outputs) with linear intervals vom startval to stopval
- calculates pwm steps depending on startval, stopval and timeinterval
- -> results in constanst speed
- returns 1 if led dimming is running
- returns 0 if led dimming is finished
*/
void setup() {
#ifdef WITH_DEBUGGING_ON
Serial.begin(460800);
gdbstub_init();
#else
Serial.begin(115200);
#endif
Serial.println(F("Booting ...."));
pinMode(NODEMCU_LED, OUTPUT);
pinMode(ESP12_LED, OUTPUT);
Wire.begin(); // Wire must be started first
Wire.setClock(400000); // Supported baud rates are 100kHz, 400kHz, and 1000kHz
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("Connection Failed! Rebooting...");
delay(5000);
ESP.restart();
}
pinMode(led, OUTPUT);
digitalWrite(led, 0);
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
os_timer_setfn(&timer1, timer_callback, &timer_arg);
os_timer_arm(&timer1, 1, true);
Serial.println("Ready");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
setup_ota();
httpServer.start();
httpServer.onNotFound(handleNotFound);
Serial.println("HTTP server started !");
setup_pwm_pca9685();
Serial.println("PCA9685 connected !");
}
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval, uint8_t factor){
static uint8_t lastled = 255;
static uint8_t current_pwm = 0;
static float current_pwm = 0;
static float stepsize = 1.0;
if(led != lastled){
pwmController.setChannelPWM(led, startval);
pwmController.setChannelPWM(led, (uint16_t)startval);
lastled = led;
current_pwm = startval;
stepsize = 20*abs(stopval - startval)/(float)time_per_stair; // only valid at 1ms function call interval
return 1;
}
if(current_pwm == stopval){
return 0;
}
else if(startval > stopval){
current_pwm -= 1;
if(current_pwm > stopval - stepsize && current_pwm < stopval + stepsize) return 0;
// todo: duty cycle zero!
if(startval > stopval){
current_pwm -= stepsize;
}
else {
current_pwm += 1;
current_pwm += stepsize;
}
pwmController.setChannelPWM(led, current_pwm*factor);
Serial.println((uint16_t)current_pwm);
pwmController.setChannelPWM(led, (uint16_t)current_pwm);
return 1;
}
#define LEDCOUNT 16
void ledsequence(uint8_t direction, uint8_t onoff, uint8_t factor){
void ledsequence(uint8_t direction, uint8_t onoff){
static int8_t led = 0;
static uint8_t brightness = 0;
static uint8_t lastbrightness = 0;
static uint16_t brightness = 0;
static uint16_t lastbrightness = 0;
static uint8_t finish = 1;
static uint32_t status = 0;
uint32_t status_build = 0;
status_build |= direction << 16;
status_build |= onoff << 8;
status_build |= factor;
static uint16_t status = 0;
uint16_t status_build = 0;
status_build |= direction << 8;
status_build |= onoff;
if(status_build != status){ // check if any parameter changed
finish = 0; // set state unfinished -> start action
if(direction) led = 0; // reset led counter depending of direction
else led = LEDCOUNT-1;
if(onoff){
brightness = 127; // set brightness value depending of on/off
lastbrightness = 0;
brightness = 2048; // set brightness value depending of on/off
lastbrightness = 200;
}
else{
brightness = 0;
lastbrightness = 127;
brightness = 200;
lastbrightness = 2048;
}
status = status_build; // set parameter memory
Serial.print("----Status Changed! onoff: ");
@@ -233,8 +159,8 @@ void ledsequence(uint8_t direction, uint8_t onoff, uint8_t factor){
}
if(!finish){ // finish == 0 -> action pending
if(!softstart_led(led,lastbrightness, brightness, factor)){
Serial.print("one LED finished, new set led: ");
if(!softstart_led(led,lastbrightness, brightness)){
Serial.print("one LED finished: ");
Serial.print(led);
Serial.print(" last: ");
Serial.print(lastbrightness);
@@ -258,26 +184,57 @@ void ledsequence(uint8_t direction, uint8_t onoff, uint8_t factor){
}
}
uint32_t _t=0;
#define SP_US(_str,_a) Serial.print(_str); Serial.print(" took: "); Serial.print(_a); Serial.println("us")
#define TIMEIF_US(_f, _l, _str) _t=micros(); _f; _t=micros()-_t; if(_t > _l) { SP_US(_str, _t); }
void setup() {
#ifdef WITH_DEBUGGING_ON
Serial.begin(460800);
gdbstub_init();
#else
Serial.begin(115200);
#endif
Serial.println(F("Booting ...."));
pinMode(NODEMCU_LED, OUTPUT);
pinMode(ESP12_LED, OUTPUT);
Wire.begin(); // Wire must be started first
Wire.setClock(1000000); // Supported baud rates are 100kHz, 400kHz, and 1000kHz
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("Connection Failed! Rebooting...");
delay(5000);
ESP.restart();
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
ota_setup();
httpServer.start();
httpServer.onNotFound(handleNotFound);
Serial.println("HTTP server started !");
setup_pwm_pca9685();
Serial.println("PCA9685 connected !");
os_timer_setfn(&timer1, timerCallback, &timer_flag);
os_timer_arm(&timer1, 20, true);
}
void loop() {
if(millis() - dimmtimer > 2){
//ledsequence(direction, onoff, 4);
dimmtimer = millis();
}
if(millis() > 25000 && onoff == 1 && direction == 1) onoff = 0;
if(millis() > 35000 && direction == 1){
if(millis() > 45000 && direction == 1){
onoff = 1;
direction = 0;
}
TIMEIF_US(ArduinoOTA.handle(), 1000, "OTA");
TIMEIF_US(httpServer.handleClient(), 1000, "HTTP");
if(flag) {
flag = 0;
ledsequence(direction, onoff, 4);
//Serial.printf("[%lu] interrupt\n\r", millis());
}
}
View File
Whitespace-only changes.