Ajouté des composants à Fritzing

This commit is contained in:
Christian Zufferey
2019-04-08 00:47:02 +02:00
parent 960fbc4cb9
commit 8c70035de0
15 changed files with 20 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Fritzing/TO-220-2lead.fzpz Normal file

Binary file not shown.

BIN
Fritzing/TO-220-3lead.fzpz Normal file

Binary file not shown.

BIN
Fritzing/TO220-4lead.fzpz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

20
Serial/minimal_serial.lua Normal file
View File

@@ -0,0 +1,20 @@
count=100
-- when 4 chars is received.
uart.on("data", 4,
function(data)
count = count - 1
print("receive from uart:", data)
if data=="quit" or count<1 then
uart.on("data") -- unregister callback function
end
end, 0)
-- when '\r' is received.
uart.on("data", "\r",
function(data)
count = count - 1
print("receive from uart:", data)
if data=="quit\r" or count<1 then
uart.on("data") -- unregister callback function
end
end, 0)