C# Fill ToolStripMenu with available Comportname Items and function

foreach (string s in SerialPort.GetPortNames())
{
     //Interface - fill Items;
     comToolStripMenuItem.DropDownItems.Add(s);
}
     //Show selected COM Port at StatusStrip Label
     selectedPort.Text = "Port: " + SerialPort.PortName;

private void comPortSelect(object sender, ToolStripItemClickedEventArgs e)
{
     string comTSMIName = e.ClickedItem.Text;
     SerialPort.PortName = comTSMIName;
     selectedPort.Text = "Port: " + SerialPort.PortName;
     MessageBox.Show("changed to: " + SerialPort.PortName, "Interface");
}

public void setupport()
{
     SerialPort.PortName = "COM1";

     if (comTSMIName == null)
     {
         comTSMIName = SerialPort.PortName;
     }
     else { SerialPort.PortName = comTSMIName; }

     SerialPort.DataBits = 8;
     SerialPort.StopBits = System.IO.Ports.StopBits.One;
     SerialPort.Parity = (System.IO.Ports.Parity)Enum.Parse(typeof(System.IO.Ports.Parity), combobox_COMParity.SelectedItem.ToString());

     if (!SerialPort.IsOpen)
     {
         SerialPort.Open();
     }
}

public void godown()
{
     SerialPort.Close();
}

ATmega328 + LM75 (AVR i²C Temp)

serial terminal

ATmega328 + LM75

 

 

 

 

 

 

 

 

 

My first Arduino experiences

See Arduino Language Reference for more info

#include <Wire.h>
#define address 0x48

int temperature,i;

void setup()
{
  Wire.begin();
  Serial.begin(9600);
  Serial.println("ser!al - Temp (LM75) v1");
}

void loop()
{
  Wire.beginTransmission(address);
  Wire.requestFrom(address, 1);

  if (Wire.available()) {
     temperature = Wire.read();
  }
  Wire.endTransmission();
  Serial.print("---Loop(");
  Serial.print(i);
  Serial.println(")---");
  Serial.print(temperature);
  Serial.println(" C");
  i++;
  delay(1000);
}

Untethered A5 Jailbreak veröffentlicht (Absinthe A5)

Untethered Jailbreak for iPhone 4S & iPad 2 released !

Get staff from here @ greenpois0n.com
Software is available for Mac & Win.

Cydia Sources (Repos)

http://sinfuliphonerepo.com
http://cydia.hackulo.us
http://cydia.xsellize.com
http://ihacksrepo.com

Ambilight (amBX) Showroom

Customised lighting & immersion design for real-time playback through DMX RGB LED lighting, fans and rumble devices