Commit cf9e848c by Enrico Pozzobon

Merge branch 'master' of lab.las3.de:lwc/compare

parents c3ec46da cbeeca91
......@@ -371,6 +371,17 @@ static void MX_GPIO_Init(void)
LL_GPIO_ResetOutputPin(LD2_GPIO_Port, LD2_Pin);
/**/
LL_GPIO_SetOutputPin(GPIOD, LL_GPIO_PIN_7);
/**/
GPIO_InitStruct.Pin = LL_GPIO_PIN_7;
GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;
LL_GPIO_Init(GPIOD, &GPIO_InitStruct);
/**/
GPIO_InitStruct.Pin = LL_GPIO_PIN_0;
GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW;
......
......@@ -54,6 +54,7 @@ def submit(channel, action, data):
else:
h = struct.pack("<BI", ord(action), len(data))
write(channel, h)
time.sleep(0.1)
write(channel, data)
def main(argv):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment