Comments (1)
The code is able to handle up to 15 cells
struct __attribute__((packed))A25C40 { int c1; //cell1 /1000 int c2; //cell2 int c3; //etc. int c4; int c5; int c6; int c7; int c8; int c9; int c10; int c11; int c12; int c13; int c14; int c15; } S25C40;
Line 146 in defines.h
This is where we display the battery cells info
`int v;
int * ptr;
int * ptr2;
ptr = (int*)&S25C40;
ptr2 = ptr + 5;
for (int i = 0; i < 5; i++) {
display.setCursor(5, 2 + i);
display.print(i);
display.print(": ");
v = *ptr / 1000;
display.print(v);
display.print('.');
v = *ptr % 1000;
if (v < 100) display.print('0');
if (v < 10) display.print('0');
display.print(v);
display.print((const __FlashStringHelper *) l_v);
display.setCursor(70, 2 + i);
display.print(i + 5);
display.print(": ");
v = *ptr2 / 1000;
display.print(v);
display.print('.');
v = *ptr2 % 1000;
if (v < 100) display.print('0');
if (v < 10) display.print('0');
display.print(v);
display.print((const __FlashStringHelper *) l_v);
ptr++;
ptr2++;
}
`
Line 179 M365.ino
from m365_dashboard.
Related Issues (20)
- Temperature HOT 2
- Display ECO mode HOT 2
- Please remove the language file from root folder HOT 1
- 3D case cads HOT 1
- Color of display HOT 1
- STL dimension problem HOT 1
- Upload custom firmware fail while dashboard connected. HOT 2
- Russian gibberish HOT 7
- black screen HOT 3
- oled ssd1106 wrong visualization HOT 2
- Getting a green led with blinking tail lights HOT 12
- Could that work on the Pro ? HOT 2
- License is missing HOT 1
- Greek Symbol Font HOT 4
- Language switching problem HOT 2
- Unable to use en language HOT 2
- Change mode HOT 1
- Can not get data (tried on Micro and Leonard) HOT 6
- language problem HOT 1
- No data when motor works
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m365_dashboard.