Hallo Tinkerforge Community.
ich hab ein kleines Problem bei meiner Form.
Sobald ich in meiner Form auf meinen Backlight Button drücke kommt folgende Fehlermeldung:
Could not load type 'Tinkerforge.IPConnection' from assembly 'Tinkerforge, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Tinkerforge;
namespace Tinkerforge
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[sTAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1()); //hier kommt der FEHLER
}
}
}
ButtonCode
private void button2_Click(object sender, EventArgs e)
{
IPConnection ipcon = new IPConnection(HOST, PORT); // Create connection to brickd
BrickletLCD20x4 lcd = new BrickletLCD20x4(UID); // Create device object
ipcon.AddDevice(lcd);
if (DisplayOn == false)
{
lcd.BacklightOn();
btnBLOn.Text = "Backlight On";
DisplayOn = true;
}
else
{
lcd.BacklightOff();
btnBLOn.Text = "Backlight Off";
DisplayOn = false;
}
lcd.BacklightOn();
ich hoffe ihr könnt mir dabei helfen