update 3.6 to teensy 4.0 and glediator

Status
Not open for further replies.

djmaus

New member
teensy 3.6 works great with glediator ( jinx )

buyed a teensy4.0 but having troubles to upload ( arduino 1.8.10 )

but i cant upload , anyone can help ???


Arduino:1.8.11 Hourly Build 2019/09/19 01:33 (Windows 10), Board:"Teensy 4.0, Serial, Faster, US English"

java.io.IOException: Toegang geweigerd
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at processing.app.BaseNoGui.saveFile(BaseNoGui.java:886)
at processing.app.SketchFile.save(SketchFile.java:287)
at processing.app.Sketch.save(Sketch.java:138)
at processing.app.SketchController.save(SketchController.java:352)
at processing.app.Editor.handleSave2(Editor.java:1928)
at processing.app.Editor.handleSave(Editor.java:1903)
at processing.app.Editor.handleExport(Editor.java:2043)
at processing.app.EditorToolbar.handleSelectionPressed(EditorToolbar.java:498)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:448)
at java.awt.Component.processMouseEvent(Component.java:6536)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4532)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Toegang geweigerd
C:\Users\maus\Documents\Arduino\libraries\OctoWS2811\OctoWS2811.cpp: In member function 'void OctoWS2811::begin()':

C:\Users\maus\Documents\Arduino\libraries\OctoWS2811\OctoWS2811.cpp:85:2: error: 'GPIOD_PCOR' was not declared in this scope

GPIOD_PCOR = 0xFF;

^

C:\Users\maus\Documents\Arduino\libraries\OctoWS2811\OctoWS2811.cpp:168:19: error: 'GPIOD_PSOR' was not declared in this scope

dma1.destination(GPIOD_PSOR);

^

C:\Users\maus\Documents\Arduino\libraries\OctoWS2811\OctoWS2811.cpp:175:19: error: 'GPIOD_PDOR' was not declared in this scope

dma2.destination(GPIOD_PDOR);

^

Meerdere bibliotheken gevonden voor "OctoWS2811.h"
Gebruikt: C:\Users\maus\Documents\Arduino\libraries\OctoWS2811
Niet gebruikt: C:\Program
exit status 1
Fout bij het compileren voor board Teensy 4.0

Dit rapport zou meer informatie bevatten met
"Uitgebreide uitvoer weergeven tijden compilatie"
optie aan in Bestand -> Voorkeuren.





Code:
// Glediator example with OctoWS2811, by mortonkopf
//
// https://forum.pjrc.com/threads/33012-Gladiator-with-OctoWS2811-working-example

// You can also use Jinx to record Glediator format data to a SD card.
// To play the data from your SD card, use this modified program:
// https://forum.pjrc.com/threads/46229&viewfull=1#post153927

#include <OctoWS2811.h>

const int ledsPerStrip = 34;
const int NUM_LEDS = 272;

DMAMEM int displayMemory[ledsPerStrip*6];
int drawingMemory[ledsPerStrip*6];

const int config = WS2811_GRB | WS2811_800kHz;
OctoWS2811 leds(ledsPerStrip, displayMemory, drawingMemory, config);

void setup() {
  leds.begin();
  leds.show();
}

int serialGlediator() {
  while (!Serial.available()) {}
  return Serial.read();
}

void loop() {
  byte r,g,b;
  int i;

  while (serialGlediator() != 1) {}

  for (i=0; i < NUM_LEDS; i++) {
    b = serialGlediator();
    r = serialGlediator();
    g = serialGlediator();

    leds.setPixel(i, Color(r,g,b));
  }
  leds.show();
}

/* Helper functions */
// Create a 24 bit color value from R,G,B
unsigned int Color(byte r, byte g, byte b)
{
  return (((unsigned int)b << 16) | ((unsigned int)r << 8) | (unsigned int)g);
}
 
Help - Yes.

Cannot use HOURLY builds - only supported are release versions of the IDE. Current Beta for TD 1.48b1 is required for IDE 1.8.10.
 
Status
Not open for further replies.
Back
Top