inital dump

This commit is contained in:
2021-09-04 23:20:35 +02:00
parent 8d187d4413
commit 976d93836a
189 changed files with 26587 additions and 0 deletions

View File

@ -0,0 +1,16 @@
from spidev import SpiDev
spi = SpiDev()
spi.open(0,0)
def read(channel = 0):
adc = spi.xfer2([1, (8 + channel) << 4, 0])
data = ((adc[1] & 3) << 8) + adc[2]
return data
value = read(channel = 0)
print("Anliegende Spannung: %.2f" % ((value / 1023.0 * 3.3)*6.62) )

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Icon=text-html
Type=Link
URL[$e]=http://www.electronicsplanet.ch/Spannungsteiler/spannungsteiler-berechnen.php

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,4 @@
R1 = 1k
R2 = 186
Vin = 21V

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB