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

Ich habe eine Anfänger Frage zu den Python Beispielen des Thermal Imaging Bricklets und bräuchte etwas Hilfe zur Selbsthilfe.

 

Ich habe das example_live_video.py Script etwas modifiziert um statt der HighContrast Darstellung den Temperature Modus zu verwenden. Die entsprechenden Callback Funktionen habe ich im Script geändert es kommt jedoch nur ein gelbes Bild als Ausgabe. Offensichtlich habe ich das Konzept nicht so ganz verstanden, wo liegt mein Denkfehler?

example_live_video.py

Geschrieben

Hallo,

 

bei der HighContrast Darstellung bekommst du ein Array aus 80x60 Werten von 0 bis 255. Diese Werte sind jetzt nicht die tatsächliche Temperatur sondern bieten einen Index für eine Farbtabelle mit 256 Elementen.

Beispiel für das Element[10] = 128. Wäre jetzt also der Wert für den Farbindex Nummer 128, der wohl im roten Bereich liegen sollte. 0 wäre etwa schwarz und 255 weiss. ( Wobei du auch eine andere Farbtabelle nach deinem Geschmack  benutzen kannst ) 

 

Im Temperaturmodus bekommt du ein Array mit den tasächlichen Temperaturen ausgegeben, wobei diese Werte als 16 Bit Integer dargestellt werden.

Beispiel für das Element[10] : 28412 , Temperatur in Kelvin!!!

 

 

Geschrieben
  • Autor

Vielen Dank, ich hab meinen Fehler verstanden jetzt klappt es...

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.