Skocz do zawartości

macizet

Użytkownicy
  • Zawartość

    52
  • Rejestracja

  • Ostatnio

Reputacja

7 Neutralna

O macizet

  • Ranga
    4/10
  • Urodziny 09.10.2005

Informacje

  • Płeć
    Mężczyzna
  • Lokalizacja
    Dobiegniew
  • Języki programowania
    C/C++
  • Zainteresowania
    Elektronika, Programowanie

Ostatnio na profilu byli

140 wyświetleń profilu
  1. Czesc, mam pewien problem w PlatformIO na Visual Studio Code, mianowicie: Do kodu w PlatformIO dodalem biblioteki, kod daje sie skompilowac, wiec z kodem i instalacja bibliotek jest wszystko ok, ale kiedy wejde w explorera (w VSC, Prosze nie mylic z przegladarka), sa komunikaty o problemach: { "resource": "/c:/Users/DELL/Documents/PlatformIO/Projects/IR Robot Slug/src/main.cpp", "owner": "_generated_diagnostic_collection_name_#0", "severity": 8, "message": "#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\\Users\\DELL\\Documents\\PlatformIO\\Projects\\IR Robot Slug\\src\\main.cpp).", "startLineNumber": 1, "startColumn": 1, "endLineNumber": 1, "endColumn": 21 } Tutaj na zielono, a tam na czerwono. Da sie to jakos rozwiazac?
  2. Znalazlem rozwiazanie: trzeba poczekac jakie 3 lata az na moim lapku sie PlatformIO zweryfikuje...
  3. Wiem, chodzilo mi zeby zobrazowac gabaryty wysokoscowe tego urzadzonka po tylu pieterkach
  4. A teraz jeszcze jeden problem: Nie dziala skrot do kompilowania Ctrl+alt+B. Jak to naprawic? A dokladniej to wyswietla sie taki komunikat: command 'platformio-ide.build' not found
  5. I w koncu pieterko za pieterkiem latwiej bedzie wykorzyctac UNO
  6. @ethanak Dzieki wielkie, nie wpadlbym na to. Po daniu loope() przed loop() wszystko dziala.
  7. To chyba problem z wywolywaniem funkcji w ponizszym kodzie: #include <Arduino.h> // Included libraries: #include <IRremote.h> #include <IR_def.h> // Motors pins definition: Motor Pin of H-Bridge #define M1_1 10 // 1 IN1 #define M1_2 11 // 1 IN2 #define M2_1 12 // 2 IN3 #define M2_2 13 // 2 IN4 int RECV_PIN = 2; // Pin of IR TSOP receiver // Initialize the receiver: IRrecv irrecv(RECV_PIN); decode_results results; // Code: void setup() { // Pins setup: pinMode(M1_1, OUTPUT); } void loop() { // put your main code here, to run repeatedly: loope(); } void loope() { digitalWrite(M1_1, HIGH); } A to bledy: > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\IRremote.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\irPronto.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\irRecv.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\irSend.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Aiwa.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Denon.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Dish.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_JVC.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_LG.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Lego_PF.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Mitsubishi.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_NEC.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Panasonic.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_RC5_RC6.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Samsung.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Sanyo.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Sharp.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Sony.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Template.cpp.o Compiling .pioenvs\uno\libc5c\IRremote_ID4\ir_Whynter.cpp.o Archiving .pioenvs\uno\lib166\libIR_def.a Archiving .pioenvs\uno\libc5c\libIRremote_ID4.a Archiving .pioenvs\uno\libFrameworkArduinoVariant.a Compiling .pioenvs\uno\FrameworkArduino\CDC.cpp.o Compiling .pioenvs\uno\FrameworkArduino\HardwareSerial.cpp.o Compiling .pioenvs\uno\FrameworkArduino\HardwareSerial0.cpp.o Compiling .pioenvs\uno\FrameworkArduino\HardwareSerial1.cpp.o Compiling .pioenvs\uno\FrameworkArduino\HardwareSerial2.cpp.o Compiling .pioenvs\uno\FrameworkArduino\HardwareSerial3.cpp.o Compiling .pioenvs\uno\FrameworkArduino\IPAddress.cpp.o Compiling .pioenvs\uno\FrameworkArduino\PluggableUSB.cpp.o Compiling .pioenvs\uno\FrameworkArduino\Print.cpp.o Compiling .pioenvs\uno\FrameworkArduino\Stream.cpp.o Compiling .pioenvs\uno\FrameworkArduino\Tone.cpp.o Compiling .pioenvs\uno\FrameworkArduino\USBCore.cpp.o Compiling .pioenvs\uno\FrameworkArduino\WInterrupts.c.o Compiling .pioenvs\uno\FrameworkArduino\WMath.cpp.o Compiling .pioenvs\uno\FrameworkArduino\WString.cpp.o Compiling .pioenvs\uno\FrameworkArduino\abi.cpp.o Compiling .pioenvs\uno\FrameworkArduino\hooks.c.o Compiling .pioenvs\uno\FrameworkArduino\main.cpp.o Compiling .pioenvs\uno\FrameworkArduino\new.cpp.o Compiling .pioenvs\uno\FrameworkArduino\wiring.c.o Compiling .pioenvs\uno\FrameworkArduino\wiring_analog.c.o Compiling .pioenvs\uno\FrameworkArduino\wiring_digital.c.o Compiling .pioenvs\uno\FrameworkArduino\wiring_pulse.S.o Compiling .pioenvs\uno\FrameworkArduino\wiring_pulse.c.o Compiling .pioenvs\uno\FrameworkArduino\wiring_shift.c.o Archiving .pioenvs\uno\libFrameworkArduino.a Linking .pioenvs\uno\firmware.elf Checking size .pioenvs\uno\firmware.elf Building .pioenvs\uno\firmware.hex Memory Usage -> http://bit.ly/pio-memory-usage DATA: [ ] 0.4% (used 9 bytes from 2048 bytes) PROGRAM: [ ] 1.4% (used 444 bytes from 32256 bytes) ========================= [SUCCESS] Took 15.65 seconds ========================= Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o Linking .pioenvs\uno\firmware.elf Checking size .pioenvs\uno\firmware.elf Memory Usage -> http://bit.ly/pio-memory-usage DATA: [ ] 0.4% (used 9 bytes from 2048 bytes) PROGRAM: [ ] 1.4% (used 444 bytes from 32256 bytes) ========================== [SUCCESS] Took 3.96 seconds ========================== Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o Linking .pioenvs\uno\firmware.elf Checking size .pioenvs\uno\firmware.elf Building .pioenvs\uno\firmware.hex Memory Usage -> http://bit.ly/pio-memory-usage DATA: [= ] 10.7% (used 219 bytes from 2048 bytes) PROGRAM: [ ] 3.9% (used 1250 bytes from 32256 bytes) ========================== [SUCCESS] Took 4.15 seconds ========================== Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o src\main.cpp: In function 'void setup()': src\main.cpp:22:9: error: 'loope' was not declared in this scope loope(); ^ *** [.pioenvs\uno\src\main.cpp.o] Error 1 =========================== [ERROR] Took 4.24 seconds =========================== The terminal process terminated with exit code: 1 Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o src\main.cpp: In function 'void setup()': src\main.cpp:23:9: error: 'loope' cannot be used as a function loope(); ^ src\main.cpp: In function 'void loope()': src\main.cpp:29:12: error: 'void loope()' redeclared as different kind of symbol void loope() {} ^ src\main.cpp:13:5: note: previous declaration 'int loope' int loope; ^ *** [.pioenvs\uno\src\main.cpp.o] Error 1 =========================== [ERROR] Took 3.45 seconds =========================== The terminal process terminated with exit code: 1 Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o src\main.cpp: In function 'void loop()': src\main.cpp:26:11: error: 'loope' was not declared in this scope loope(); ^ *** [.pioenvs\uno\src\main.cpp.o] Error 1 =========================== [ERROR] Took 3.68 seconds =========================== The terminal process terminated with exit code: 1 Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o src\main.cpp: In function 'void loop()': src\main.cpp:26:11: error: 'i' was not declared in this scope loope(i); ^ src\main.cpp:26:12: error: 'loope' was not declared in this scope loope(i); ^ *** [.pioenvs\uno\src\main.cpp.o] Error 1 =========================== [ERROR] Took 3.53 seconds =========================== The terminal process terminated with exit code: 1 Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o Linking .pioenvs\uno\firmware.elf Checking size .pioenvs\uno\firmware.elf Memory Usage -> http://bit.ly/pio-memory-usage DATA: [= ] 10.7% (used 219 bytes from 2048 bytes) PROGRAM: [ ] 3.9% (used 1250 bytes from 32256 bytes) ============= [SUCCESS] Took 4.42 seconds ============= Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 29 compatible libraries Scanning dependencies... Dependency Graph |-- <IRremote> 2.3.3 |-- <IR_def> Compiling .pioenvs\uno\src\main.cpp.o src\main.cpp: In function 'void loop()': src\main.cpp:26:9: error: 'loope' was not declared in this scope loope(); ^ *** [.pioenvs\uno\src\main.cpp.o] Error 1 ============== [ERROR] Took 3.59 seconds ============== The terminal process terminated with exit code: 1 Terminal will be reused by tasks, press any key to close it. > Executing task: C:\Users\DELL\.platformio\penv\Scripts\platformio.exe run < 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 > Arduino Uno HARDWARE: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 31 compatible libraries Scanning dependencies... Dependency Graph |-- <IR_def> |-- <IRremote> 2.3.3 Compiling .pioenvs\uno\src\main.cpp.o Archiving .pioenvs\uno\libf1e\libIR_def.a src\main.cpp: In function 'void loop()': src\main.cpp:26:9: error: 'loope' was not declared in this scope loope(); ^ Compiling .pioenvs\uno\lib969\IRremote_ID4\IRremote.cpp.o *** [.pioenvs\uno\src\main.cpp.o] Error 1 ============== [ERROR] Took 4.75 seconds ============== The terminal process terminated with exit code: 1 Terminal will be reused by tasks, press any key to close it. Kilka razy probowalem skompilowac. Moze cos zle z ta funkcja? Poza tym przepraszam za pisownie, bo mam norweska klawiature To loope to tak na probe. No, i chyba kilka razy powielalem kompilacje, wiec sorki za dlugosc tego ERROR
  8. Po zainstalowaniu i skonfigurowaniu PlatformIO, zainstalowałem bibliotekę IRremote, w Arduino IDE kompilacja kodu przebiegła pomyślnie, a w PlatformIO zgłaszała błędy. Dlaczego?
  9. A w tym twoim Arduino podciągnąłeś reset do 5V za pomocą rezystora 10K?
  10. @slon żeby sterować przyciskami trzeba by zrobić pętlę for która co 0.5 sekundy będzie zwiększać wartość zmiennej o 1 a potem dać tą zmienną do tego twojego BPM (Sorry, ale nie bardzo wiem gdzie), a druga pętla for przy drugim przycisku odpowiadałaby za zmniejszanie wartości zmiennej.
  11. Witam, tak jak w tytule: Jakiego języka używa konkretnie Arduino? Bo nigdzie nie mogę znaleźć konkretnej odpowiedzi. Wszędzie ni taki ni taki ten język. Proszę o szybką odpowiedź
  12. Sorry za te stałe czy zmienne. Chodziło mi o to samo, tylko @daniel89 lepiej to ujął.
×
×
  • Utwórz nowe...