Skip to content

Commit 650e7fa

Browse files
Pruebas.
1 parent d8098fd commit 650e7fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pruebas.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
mcp = EasyMCP2221.Device()
88

99
mcp.set_pin_function(
10-
gp0 = "GPIO_IN",
11-
gp1 = "GPIO_IN",
10+
gp0 = "GPIO_OUT", out0 = 1,
11+
gp1 = "GPIO_OUT", out1 = 1,
1212
gp2 = "ADC",
1313
gp3 = "DAC")
14-
mcp.DAC_config("VDD")
15-
mcp.ADC_config("VDD")
16-
17-
mcp.DAC_write(5)
1814

15+
text = b"And Saint Attila raised the hand grenade up on high, saying, 'O Lord, bless this thy hand grenade, that with it thou mayst blow thine enemies to tiny bits, in thy mercy.' And the Lord did grin. And the people did feast upon the lambs, and sloths, and carp, and anchovies, and orangutans, and breakfast cereals, and fruit bats, and large chulapas. And the Lord spake, saying, 'First shalt thou take out the Holy Pin. Then shalt thou count to three, no more, no less. Three shall be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count, neither count thou two, excepting that thou then proceed to three. Five is right out. Once the number three, being the third number, be reached, then lobbest thou thy Holy Hand Grenade of Antioch towards thy foe, who, being naughty in My sight, shall snuff it."
1916

17+
mcp.I2C_speed(47000)
2018

19+
#mcp.I2C_write(0x50, b"\0\0" + text[0:200])
20+
mcp.I2C_read(0x50, 77)
2121

2222

2323
def freq_meter():

0 commit comments

Comments
 (0)