Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hallo zusammen,

 

ich baue ja doch einige Pakete mit dem RGB LEDs aber nun ist mir ein "Unterschied" bzw. Fehler bei der LED Strip Bricklet API aufgefallen als ich mein Programm vom "STRIP" to "SINGLE" Bricklet protieren wollte.

Laut Doku ist jedes mal die Farbreihenfolge RGB, aber sie passt nicht.

Hinweis zum verwendeten WS2812: Es ist eine Platineneiste mit festen LEDs (Neopixel), also nicht mit Chips und externen einzelnen LEDs. Da kann man doch nichts falsch verdrahten, oder? Wenn man die Neopixel als Referenz der Farbbeschaltung/Farbzuordnung nimmt, ist die API falsch.

Die neue Mappingfunktion habe ich ausser acht gelassen, und spielt hier eigentlich keine Rolle.

 

Oder liege ich fasch? Die Threads zu den Strips hatte ich gelesen.

 

 

Auszug aus der Doku LED Strip Bricklet:

BrickletLEDStrip.set_rgb_values Funktions ID: 1

index -- uint16
length -- uint8
r -- uint8[16] <- Setzt BLAU  bei Neopixel
g -- uint8[16] <- Setzt ROT   bei Neopixel
b -- uint8[16] <- Setzt GRUEN bei Neopixel

 

Ich habe da wohl seinerzeit ein eigenes Mapping einbaut und das Problem fiel erst mit dem neuen RGB LED Bricklet auf als ich die Software portieren wollte.

 

Auszug aus der Doku RGB LED Bricklet:

BrickletRGBLED.set_rgb_value Funktions ID: 1

r -- uint8 <- hier stimmt es: ROT   bei Neopixel
g -- uint8 <- hier stimmt es: GRUEN bei Neopixel
b -- uint8 <- hier stimmt es: BLAU  bei Neopixel

 

 

Der Loetkolben

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.