Skip to content

Commit

Permalink
Used Proper Extern usage
Browse files Browse the repository at this point in the history
  • Loading branch information
WonITKorea committed Feb 9, 2024
1 parent 68cca06 commit b189faa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/Display/Display.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ unsigned long watch_tick;
#define SERIAL_BAUD 115200
#define I2C_DEV_ADDR 0x55

extern ui_Label1;
extern ui_Label4;
extern lv_obj_t * ui_Spinbox1;
extern lv_obj_t * ui_Spinbox2;
extern lv_obj_t * ui_Spinbox3;
int rpmVal = 0;
int spVal = 0;
int coolVal = 0;
Expand Down Expand Up @@ -151,7 +152,8 @@ void onReceive(int len)
Serial.printf("onReceive[%d]: ", len);
while (Wire.available())
{

spVal = Wire.read();
lv_spinbox_set_value(ui_Spinbox2, spVal);
Serial.write(Wire.read());
}
Serial.println();
Expand Down Expand Up @@ -228,7 +230,6 @@ void setup()
digitalWrite(TFT_BL, HIGH);
#endif


#ifdef USE_UI
ui_init(); // ui from Squareline or GUI Guider
#else
Expand Down
1 change: 1 addition & 0 deletions code/Display/ui_Screen1.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Project name: SquareLine_Project

#include "ui.h"
#include <Arduino.h>

void ui_Screen1_screen_init(void)
{
Expand Down

0 comments on commit b189faa

Please sign in to comment.