ft81xmania / gd23zutx Goto Github PK
View Code? Open in Web Editor NEWLibrary to control EVE2(FT813, FT811, FT810) or EVE3 (BT815) TFT´s with Teensy 4, Teensy 3.6 or Teensy 3.5, with SdFat-beta
License: BSD 3-Clause "New" or "Revised" License
Library to control EVE2(FT813, FT811, FT810) or EVE3 (BT815) TFT´s with Teensy 4, Teensy 3.6 or Teensy 3.5, with SdFat-beta
License: BSD 3-Clause "New" or "Revised" License
Hello, I'm running GD23ZUTX on a teensy and I'm using a Can Bus transceiver that is reading data off my car's ECU.
The issue I'm having is that if I set the ECU to send data at anything more than 10HZ, the data I'm seeing on the serial monitor is really laggy, like 5 seond delay. I can switch it to 10hz and it will run alright but 10HZ produces a choppiness with the gauge command. I'd like to be able to run at least 20HZ or faster.
I've narrowed down the issues to the Gameduino part of my code. If I run just the Can Bus code and output it to the serial monitor, the data is received at even 50HZ. Once I introduce a command, for example just the number command to display a reading on the screen, the lag comes back.
I added some code using millis() to determine the loop rate and I'm getting about 55 loops a second so I'm not sure where the incoming data is being backed up.
Below is a sample of my code.
`#include <GD23ZUTX.h>
#include <FlexCAN.h>
static CAN_message_t rxmsg;
FlexCAN CANbus(500000);
float CTPS, TPS;
void setup() {
CANbus.begin();
GD.begin();
}
void loop() {
if ( CANbus.read(rxmsg) ) {
switch (rxmsg.id) { // Using IDs from 1512 as Megasquirt CAN broadcast frames for Simplified Dash Broadcasting.
// EAch frame represents a data group http://www.msextra.com/doc/pdf/Megasquirt_CAN_Broadcast.pdf
case 1523:
CTPS = (float)(word(rxmsg.buf[0], rxmsg.buf[1])); //AFR...no division
break;
}
}
TPS = CTPS/10;
Serial.println(TPS);
GD.Clear();
GD.ColorRGB(0xffffff);
GD.printNfloat(390, 450, TPS, 0, 30);
GD.swap();
GD.finish();
}`
Hi, I made the changes to GD23ZU in order to play video and some little updates, I can send it if you want. It is very fast because it uses a separate bus for SD card (SDMMC up to quad data lines).
Bernard
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.