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 bin recht neu, was TF betrifft. Jedoch habe ich gestern folgendes Problem beobachtet.

Ich habe einen Rechner mit Debian 6 ohne GUI. Dort habe ich den Daemon installiert und konnte dann auch ohne Probleme das LCD Display ansteuern. Dann habe ich noch einen IO16 dazu gebaut. Habe das Beispielscript für Python für die Callbacks genommen und es hat auf keine Schaltvorgänge reagiert. Dann ein Laptop mit Ubuntu genommen, Daemon und Viewer installiert. Dort geht es nur, wenn ich den Viewer starte und das IO16 Bricklet auswähle.

Aber so wie ich es verstanden habe, müsste es doch auch ohne Viewer gehen, oder?

Geschrieben

Klingt danach, dass du die Callbacks nicht einschaltest. Wenn dann der Viewer dazukommt schaltet er sie ein.

 

Hast du den interrupt mittels set_port_interrupt aktiviert?

Geschrieben
  • Autor

Hallo,

 

ich hatte den Interrupt auf allen Ports aktiviert mit

"io.set_port_interrupt('a', 0xFF)" (ist der Befehl so richtig???)

 

aktiviert.

Geschrieben
  • Autor

Hallo,

 

alle Ports sind auf Input Konfiguriert, laut dem Viewer.

Geschrieben

Der Viewer konfiguriert auf Input wenn du ihn anmachst. Du sagst ja das es funktioniert wenn du den Viewer anmachst. Das lässt mich vermuten dass bisher immer der Viewer auf Input konfiguriert hat :).

Geschrieben
  • Autor

Ahh,

 

das klingt logisch. Ich werde das heute abend mal ins Script aufnehmen und dann testen.

Also dann einfach mit

io.set_port_configuration('a', 0xFF, 'i', True)

alle Port auf Input setzen?

Geschrieben
  • Autor

Funzt, vielen dank für die schnelle Hilfe.

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.