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 @ all

Wie bekommt ein Noob Zugriff auf das Stepper Brick, über das Master Brick.

 

Wie bekommt man alle infos zu denn Bricks die im Stapel sind.

 

Hatte was gelesen mit enumeration

 

Wie kann ich das denn umsetzen in VB.NET

 

Bitte für Anfänger.

 

Eine Verbindung zum Master Brick bekomm ich hin aber keine infos über das Master Brick zu denn angeschlossen bricks.

Geschrieben
  • Autor

Das man denn Srepper über die UID ansteuern kann is mir bekannt.

Mir ging es mehr um, über Master Brick die Srepper UID zu erfahren oder ihn anzusteuern.

  • 1 month later...
Geschrieben

Ich häng mich mal hier an, da ich auch dazu eine Frage hab.

Und zwar hab ich ein Master, 2x Stepper und ein Dual-Relay. Nun stellt sich mir die Frage ob das so stimmt was ich gemacht habe.

 

Hier mal der VB.NET Code

 

Const HOST As String = "localhost"
Const PORT As Int32 = 4223
Const UID As String = "xxxxxxxx"
Const UID_stepX As String = "xxxxxxxx"
Const UID_stepY As String = "xxxxxxxx"
Const UID_relay As String = "xxxxxxxx"

Private Sub Init()
Dim ipcon As New IPConnection()
Dim master As New BrickMaster(UID, ipcon)
Dim stepX As New BrickStepper(UID_stepX, ipcon)
Dim stepY As New BrickStepper(UID_stepY, ipcon)
Dim dual_rel As New BrickletDualRelay(UID_relay, ipcon)
ipcon.Connect(HOST, PORT)
End Sub

 

Stimmt so wirklich die Initialisierung, so dass ich alles über den Master-Brick machen kann?

 

Ich hab nämlich noch sowas gesehen in Python

ipcon = IPConnection(HOST, PORT) 
master = Master(UID) 
ipcon.add_device(master) 
stepperx = Stepper(UID_step1) 
ipcon.add_device(stepperx) 
steppery = Stepper(UID_step2) 
ipcon.add_device(steppery)
dr = DualRelay(UID_rel) 
ipcon.add_device(dr) 

 

und frage mich, wie man das "ipcon.add_device(DEVICE)" in VB macht, hab es dort nicht gefunden.

 

Es wäre sehr nett wenn mir mal einer zeigt wie man die Bricks und Bricklets richtig initialisiert.

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.