Schließlich muss die Steuerung mit einem kleinen System funktionieren. Mit Lego Power Functions und Adapterkabel funktionierte das alles ganz gut, aber es stand kein Steuerungssystem dahinter, das ein komplettes Programm abspielen konnte.
Für mich war wichtig, dass ein Bildschirm zur Verfügung stände, mit dem man das abzuspielende Programm auswählen konnte.
netmf
Microsoft's Gadgeteer Core (Doku und Beispiele)
GHI Eletronics' NETMF SDK
- Alte Version, falls die Downloads nicht klappen. Zip enthält:
netmfvs.vsix
MicroFramorkSDK.MSI
NETMF and Gadgeteer Package 2013 R3
- Ziel System Gadgeteer FEZ Spider und das Touch Display
Vielleicht hatte ich zu viele Ideen und Baustellen, so dass ich vergessen habe, wie toll das System eigentlich ist. Mir fehlte zwar ein passendes Gehäuse, aber das sollte nicht hinderlich sein. Zunächst soll das System wieder zum Laufen gebracht werden.
public partial class Program
{
Text text;
void ProgramStarted()
{
CreateButton();
}
private void CreateButton()
{
var main = this.Display_T35.WPFWindow;
var canvas = new Panel();
canvas.HorizontalAlignment = HorizontalAlignment.Left;
canvas.SetMargin(4);
canvas.SetMargin(5, 5, 0, 0);
Rectangle rec = new Rectangle(200, 100);
rec.HorizontalAlignment = HorizontalAlignment.Left;
rec.VerticalAlignment = VerticalAlignment.Top;
rec.Fill = new SolidColorBrush(Colors.Green);
canvas.Children.Add(rec);
Font baseFont = Resources.GetFont(Resources.FontResources.NinaB);
text = new Text(baseFont, "Hello World!");
text.ForeColor = Colors.Black;
text.HorizontalAlignment = HorizontalAlignment.Left;
text.VerticalAlignment = VerticalAlignment.Top;
text.SetMargin(10, 10, 0, 0);
text.Height = 20;
text.Visibility = Visibility.Collapsed;
canvas.Children.Add(text);
main.Child = canvas;
main.TouchDown += new Microsoft.SPOT.Input.TouchEventHandler(main_TouchDown);
}
void main_TouchDown(object sender, Microsoft.SPOT.Input.TouchEventArgs e)
{
text.Visibility = Visibility.Visible;
}
}


















