Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT updates to noAccessPointSimpleFOSSA #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified 3DPrints/FOSSA ATM WT32-SC01 Backplate.stl
Binary file not shown.
Binary file added Manuals/NV10Manual_2.pdf
Binary file not shown.
Binary file added Manuals/nv10usb-technical-manual.pdf
Binary file not shown.
156 changes: 78 additions & 78 deletions README.md

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions accessPointFOSSA/accessPointFOSSA.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// FOSSA WITH ACCESS-POINT

//========================================================//
Expand All @@ -19,6 +18,10 @@ bool format = false; // true for formatting FOSSA memory, use once, then make fa
//========================================================//
//========================================================//

#define IPAddress(...) (IPAddress((uint32_t)(__VA_ARGS__)))
#undef Network
extern "C" uint32_t spi_flash_get_chip_size(void);

#include <WiFi.h>
#include <WebServer.h>
#include <FS.h>
Expand Down Expand Up @@ -259,7 +262,7 @@ void setup()
}
const JsonObject maRoot3 = doc[3];
const char *maRoot3Char = maRoot3["value"];
const String coinmech = maRoot2Char;
const String coinmech = maRoot3Char;
if(coinmech == ""){
coinAmountFloat[0] = getValue(coinmech, ',', 0).toFloat();
coinAmountFloat[1] = getValue(coinmech, ',', 1).toFloat();
Expand Down Expand Up @@ -499,6 +502,8 @@ void moneyTimerFun()
printMessage(billAmountInt[i] + currencyATM, "Total: " + String(total) + currencyATM, "TAP SCREEN WHEN FINISHED", TFT_WHITE, TFT_BLACK);
}
}
} else {

}
if (SerialPort2.available()) {
int x = SerialPort2.read();
Expand Down
368 changes: 0 additions & 368 deletions libraries/TFT_eSPI/User_Setup.h

This file was deleted.

280 changes: 0 additions & 280 deletions libraries/TFT_eSPI/User_Setup_Select.h

This file was deleted.

58 changes: 58 additions & 0 deletions noAccessPointSimpleFOSSA/ESP32Test/ESP32Test.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#define USER_SETUP_LOADED // Prevents loading the default User_Setup.h

#define ST7796_DRIVER

#define TFT_WIDTH 320
#define TFT_HEIGHT 480

#define TFT_MISO -1
#define TFT_MOSI 19
#define TFT_SCLK 18
#define TFT_CS 5
#define TFT_DC 16
#define TFT_RST 23
#define TFT_BL 4 // LED backlight control pin

#define TOUCH_CS 14 // Chip select pin (T_CS) of touch screen

#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT

#define SPI_FREQUENCY 27000000
#define SPI_READ_FREQUENCY 20000000
#define SPI_TOUCH_FREQUENCY 2500000

#include <TFT_eSPI.h>

TFT_eSPI tft = TFT_eSPI();

void setup() {
Serial.begin(115200);
delay(1000); // Small delay to stabilize serial communication
Serial.println("Initializing TFT...");

pinMode(TFT_BL, OUTPUT); // Set the backlight pin as an output
digitalWrite(TFT_BL, HIGH); // Turn on the backlight

tft.init(); // Initialize the TFT screen
tft.setRotation(1); // Set the screen rotation
tft.fillScreen(TFT_RED); // Set background color to red

tft.setTextColor(TFT_WHITE); // Set text color to white
tft.setTextSize(2); // Set text size
tft.setCursor(10, 10); // Set cursor position
tft.println("TFT Screen Test"); // Print test message

Serial.println("TFT initialized and background color set");
Serial.println("TFT Screen Test Displayed");
}

void loop() {
// Empty loop
}
Loading