Guild icon
Drowning LOL
rozkminy
Avatar
ZumBeispiel 20/09/2024 17:11
Jak się nazywa ten dodatek który ma naprawić błąd pojawiający się przy #include "arduino.h"?
Avatar
ZumBeispiel 20/09/2024 18:20
Processing uno (platform: atmelavr; board: uno; framework: arduino) ----------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html PLATFORM: Atmel AVR (5.0.0) > Arduino Uno HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash DEBUG: Current (avr-stub) External (avr-stub, simavr) PACKAGES:
  • framework-arduino-avr @ 5.2.0
  • tool-avrdude @ 1.60300.200527 (6.3.0)
  • toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 5 compatible libraries Scanning dependencies... No dependencies Building in release mode Checking size .pio\build\uno\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [ ] 0.4% (used 9 bytes from 2048 bytes) Flash: [ ] 1.4% (used 444 bytes from 32256 bytes) Configuring upload protocol... AVAILABLE: arduino CURRENT: upload_protocol = arduino Looking for upload port... Using manually specified: COM6 Uploading .pio\build\uno\firmware.hex avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 avrdude done. Thank you. *** [upload] Error 1
Avatar
Serwer nie ma dobrej nazwy, więc pytam o sugestie
Avatar
ZumBeispiel 02/10/2024 15:04
W VSCode nie działa mi Run and debug do Pythona - za każdym razem gdy startuje wraca z powrotem do PlatformIO
Avatar
ZumBeispiel 11/10/2024 18:16
#include <Arduino.h> #include "WiFi.h" #include "ArduinoJson.h" #include "ESPSupabase.h" #include "SD.h" Supabase db; String supabase_url = "https://cjqnnlzspfubqqskpgia.supabase.co"; // Informacje potrzebne do połączenia z bazą danych String anon_key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNqcW5ubHpzcGZ1YnFxc2twZ2lhIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjUwMjIyNTIsImV4cCI6MjA0MDU5ODI1Mn0.4Nz78QHTrxArQliE6a_Bk-59BxFTQFUYkrRRmOxh0Bg"; const char* ssid = "ELEO2"; // Informacje potrzebne do połączenia z siecią WiFi const char* psswd = "10020099"; String table = "Stacja1"; void appendFile(fs::FS &fs, const char * path, const char * message){ // Funkcja zapisywania danych na karcie SD File file = fs.open(path, FILE_APPEND); if(!file){ Serial.println("Failed to open file for appending"); return; } if(file.print(message)){ Serial.println("Message appended"); } else { Serial.println("Append failed"); } file.close(); } void setup() { WiFi.begin(ssid, psswd); // Połączenie z siecią Wifi i bazą danych Serial.begin(9600); db.begin(supabase_url, anon_key); SD.begin(5); } void loop() { JsonDocument JSON; // Przesyłanie odczytów do bazy danych JSON["temp"] = '3'; JSON["humidity"] = '2'; JSON["preassure"] = '1'; String JSON_serialized; serializeJson(JSON, JSON_serialized); Serial.println(JSON_serialized); db.insert(table, JSON_serialized, false); String read = db.from(table).select("created_at").order("created_at", "desc", true).limit(1).doSelect(); // Odczytywanie godziny z bazy Supabase String dt = read.substring(16, 26); String tm = read.substring(27, 35); //appendFile(SD, "/odczyty.txt", (dt + "\t" + tm + "\t" + String(3) + "\t" + String(2) + "\t" + String(1) + "\n").c_str()); // Zapisywanie danych na karcie SD delay(5000); }
14:22
Avatar
poll_question_text
Co wolicie
victor_answer_votes
1
total_votes
1
victor_answer_id
2
victor_answer_text
Haii
14:22
poll_question_text
Co wolicie
victor_answer_votes
1
total_votes
1
victor_answer_id
2
victor_answer_text
Byiee
Avatar
Mario Bros 12/01/2025 14:23
Przecierz zagłosowałem ma hi a zaliczyła na haii
Exported 10 message(s)
Timezone: UTC+1