Przeszukaj forum
Pokazywanie wyników dla tagów 'rp2040'.
Znaleziono 2 wyniki
-
Arduino Błąd wgrywania programu na płytkę arduino nano rp2040 connect
sp2013 opublikował temat w Arduino i ESP
Tak jak w tytule. Program nie chce się wgrać i normalnie i w trybie bootsell. System linux. Proszę o pomoc. Płytka jest nowa z pudełka po wgraniu testowego programu blink działa ale nic innego się wgrać nie da (z arduino IDE) Kod błędu: Szkic używa 90359 bajtów (0%) pamięci programu. Maksimum to 16777216 bajtów. Zmienne globalne używają 43496 bajtów (16%) pamięci dynamicznej, pozostawiając 226840 bajtów dla zmiennych lokalnych. Maksimum to 270336 bajtów. processing.app.debug.RunnerException at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:152) at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77) at processing.app.SketchController.upload(SketchController.java:732) at processing.app.SketchController.exportApplet(SketchController.java:703) at processing.app.Editor$UploadHandler.run(Editor.java:2061) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: processing.app.SerialException: Błąd dotknięcia portu szeregowego '/dev/ttyACM0'. at processing.app.Serial.touchForCDCReset(Serial.java:107) at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:136) ... 5 more Caused by: jssc.SerialPortException: Port name - /dev/ttyACM0; Method name - openPort(); Exception type - Port not found. at jssc.SerialPort.openPort(SerialPort.java:167) at processing.app.Serial.touchForCDCReset(Serial.java:101) ... 6 more -
Arduino Błąd wyświetlania na diodach WS2812B arduino nano rp2040 connect
sp2013 opublikował temat w Arduino i ESP
Witam. Tak jak w tytule. Kod: #include <Adafruit_NeoPixel.h> // Which pin on the Arduino is connected to the NeoPixels? #define PIN A7 #define NUMPIXELS 8 Adafruit_NeoPixel strip(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); void setup() { strip.begin(); } void loop() { rainbow(5); } void rainbow(int wait) { // Hue of first pixel runs 3 complete loops through the color wheel. // Color wheel has a range of 65536 but it's OK if we roll over, so // just count from 0 to 3*65536. Adding 256 to firstPixelHue each time // means we'll make 3*65536/256 = 768 passes through this outer loop: for(long firstPixelHue = 0; firstPixelHue < 3*65536; firstPixelHue += 256) { for(int i=0; i<strip.numPixels(); i++) { // For each pixel in strip... // Offset pixel hue by an amount to make one full revolution of the // color wheel (range of 65536) along the length of the strip // (strip.numPixels() steps): int pixelHue = firstPixelHue + (i * 65536L / strip.numPixels()); // strip.ColorHSV() can take 1 or 3 arguments: a hue (0 to 65535) or // optionally add saturation and value (brightness) (each 0 to 255). // Here we're using just the single-argument hue variant. The result // is passed through strip.gamma32() to provide 'truer' colors // before assigning to each pixel: strip.setPixelColor(i, strip.gamma32(strip.ColorHSV(pixelHue))); } strip.show(); // Update strip with new contents delay(wait); // Pause for a moment } } Błąd: In function 'void __static_initialization_and_destruction_0(int, int)', inlined from '(static initializers for C:\Users\Inny\AppData\Local\Temp\.arduinoIDE-unsaved2024416-17840-51obxe.5cz4h\sketch_may16a\sketch_may16a.ino)' at C:\Users\Inny\AppData\Local\Temp\.arduinoIDE-unsaved2024416-17840-51obxe.5cz4h\sketch_may16a\sketch_may16a.ino:38:1: C:\Users\Inny\AppData\Local\Temp\.arduinoIDE-unsaved2024416-17840-51obxe.5cz4h\sketch_may16a\sketch_may16a.ino:6:61: error: call to 'NinaPin::operator int' declared with attribute error: Change me to a #define Adafruit_NeoPixel strip(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); ^ exit status 1 Compilation error: call to 'NinaPin::operator int' declared with attribute error: Change me to a #define
