Spashscreen updated
This commit is contained in:
parent
54ece7e1f3
commit
e0b321b61d
|
@ -153,18 +153,30 @@ void config() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void upload() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void info() {
|
||||||
|
Serial.write((uint8_t) 91);
|
||||||
|
Serial.write((uint8_t) 0b01000000);
|
||||||
|
Serial.write("ATmega328P Arduino");
|
||||||
|
}
|
||||||
|
|
||||||
FNPTR_t opcodeTable[] = {
|
FNPTR_t opcodeTable[] = {
|
||||||
scale, // opcode 0x00
|
scale, // opcode 0x00
|
||||||
single, // opcode 0x01
|
single, // opcode 0x01
|
||||||
image, // opcode 0x02
|
image, // opcode 0x02
|
||||||
fill, // opcode 0x03
|
fill, // opcode 0x03
|
||||||
config // opcode 0x04
|
config, // opcode 0x04
|
||||||
|
upload,
|
||||||
|
info
|
||||||
};
|
};
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
ledCount = STD_LED_MAX_COUNT;
|
ledCount = STD_LED_MAX_COUNT;
|
||||||
|
|
||||||
Serial.begin(48000);
|
Serial.begin(9600);
|
||||||
|
|
||||||
FastLED.addLeds<LED_TYPE, DATA_PIN, GRB>(leds, ledCount);
|
FastLED.addLeds<LED_TYPE, DATA_PIN, GRB>(leds, ledCount);
|
||||||
FastLED.setCorrection(TypicalLEDStrip);
|
FastLED.setCorrection(TypicalLEDStrip);
|
||||||
|
@ -190,7 +202,7 @@ void loop() {
|
||||||
Serial.println(opcode);
|
Serial.println(opcode);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (opcode <= 4) {
|
if (opcode <= 6) {
|
||||||
opcodeTable[opcode]();
|
opcodeTable[opcode]();
|
||||||
Serial.write(75);
|
Serial.write(75);
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 245 KiB |
Binary file not shown.
Binary file not shown.
|
@ -85,7 +85,6 @@ namespace Matrix_App.forms
|
||||||
this.label3.Size = new System.Drawing.Size(88, 17);
|
this.label3.Size = new System.Drawing.Size(88, 17);
|
||||||
this.label3.TabIndex = 6;
|
this.label3.TabIndex = 6;
|
||||||
this.label3.Text = "Serial Port";
|
this.label3.Text = "Serial Port";
|
||||||
this.label3.Click += new System.EventHandler(this.label3_Click);
|
|
||||||
//
|
//
|
||||||
// groupBox1
|
// groupBox1
|
||||||
//
|
//
|
||||||
|
@ -115,7 +114,6 @@ namespace Matrix_App.forms
|
||||||
this.label5.Size = new System.Drawing.Size(129, 17);
|
this.label5.Size = new System.Drawing.Size(129, 17);
|
||||||
this.label5.TabIndex = 10;
|
this.label5.TabIndex = 10;
|
||||||
this.label5.Text = "USB";
|
this.label5.Text = "USB";
|
||||||
this.label5.Click += new System.EventHandler(this.label5_Click);
|
|
||||||
//
|
//
|
||||||
// label4
|
// label4
|
||||||
//
|
//
|
||||||
|
@ -133,7 +131,6 @@ namespace Matrix_App.forms
|
||||||
this.label2.Size = new System.Drawing.Size(127, 25);
|
this.label2.Size = new System.Drawing.Size(127, 25);
|
||||||
this.label2.TabIndex = 8;
|
this.label2.TabIndex = 8;
|
||||||
this.label2.Text = "Features";
|
this.label2.Text = "Features";
|
||||||
this.label2.Click += new System.EventHandler(this.label2_Click);
|
|
||||||
//
|
//
|
||||||
// button1
|
// button1
|
||||||
//
|
//
|
||||||
|
|
|
@ -227,24 +227,9 @@ namespace Matrix_App.forms
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void label3_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void WritePortCombobox_SelectedIndexChanged_1(object sender, EventArgs e)
|
private void WritePortCombobox_SelectedIndexChanged_1(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ValidatePortSelection(WritePortCombobox, port);
|
ValidatePortSelection(WritePortCombobox, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void label2_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void label5_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue