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,

 

kann es sein, dass (zumindest) beim Dot-Graph ein Wert zuviel bzw. der letzte Wert falsch angezeigt wird?

Ich habe das Gefühl, dass der letzte angezeigte Wert, wenn dieser nicht 0 ist, dem ersten angezeigten Wert entspricht.

Ich habe mein Programm jetzt mehrfach angeschaut und habe keinen Fehler entdeckt, möchte aber nicht ausschließen, dass der Bug auf meiner Seite liegt  ;)

Geschrieben

Kann ich irgendwie nicht reproduzieren.

 

Hab mit folgendem getestet:

 

#!/usr/bin/env python
# -*- coding: utf-8 -*-

HOST = "localhost"
PORT = 4223
UID = "GK7" # Change XYZ to the UID of your LCD 128x64 Bricklet

from tinkerforge.ip_connection import IPConnection
from tinkerforge.bricklet_lcd_128x64 import BrickletLCD128x64

if __name__ == "__main__":
    ipcon = IPConnection() # Create IP connection
    lcd = BrickletLCD128x64(UID, ipcon) # Create device object

    ipcon.connect(HOST, PORT) # Connect to brickd
    # Don't use device before ipcon is connected

    # Clear display
    lcd.clear_display()
    lcd.remove_all_gui()

    lcd.set_gui_graph_configuration(0, lcd.GRAPH_TYPE_DOT, 62, 0, 60, 52, "X", "Y")
    lcd.set_gui_graph_data(0, list(range(59)) + [200])

    raw_input("Press key to exit\n") # Use input() in Python 3
    ipcon.disconnect()

 

Sprich der Graph hat Länge 60, und die Dots gehen von 0-58 und dann der letzte bei 200.

lcd.jpg.4bf834a43f0f7a58ba9d94ac9ad1ec2a.jpg

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.