Skip to content

Commit 088a507

Browse files
committed
Updates
1 parent da41f42 commit 088a507

File tree

9 files changed

+2021
-4
lines changed

9 files changed

+2021
-4
lines changed

BetterLinky/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void loop() {
7676
}
7777
t = now();
7878
currentRMS = getCurrent();
79-
power = 230 * currentRMS; // 230V, update if not using 230V
79+
power = 224 * currentRMS; // Calibrated for my house
8080

8181
#if DEBUGGING
8282
rdebugA("%s: Current is: %fA, which makes power: %fW\n", NTP.getTimeDateString().c_str(), currentRMS, power);

PWMTiny/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.pio
2+
.pioenvs
3+
.piolibdeps
4+
.vscode/.browse.c_cpp.db*
5+
.vscode/c_cpp_properties.json
6+
.vscode/launch.json

PWMTiny/.vscode/.BROWSE.C_CPP.2.DB

45.6 MB
Binary file not shown.

PWMTiny/.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"platformio.platformio-ide"
6+
]
7+
}

PWMTiny/platformio.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter
4+
; Upload options: custom upload port, speed and extra flags
5+
; Library options: dependencies, extra library storages
6+
; Advanced options: extra scripting
7+
;
8+
; Please visit documentation for the other options and examples
9+
; https://docs.platformio.org/page/projectconf.html
10+
11+
[env:uno]
12+
platform = atmelavr
13+
board = uno
14+
framework = arduino
15+
upload_port = COM3

0 commit comments

Comments
 (0)