Skip to content

Commit 667fe23

Browse files
Rafael Koch PeresRafael Koch Peres
Rafael Koch Peres
authored and
Rafael Koch Peres
committed
Several tiny fixes. Button and Thumb Joystick folders have been renamed.
1 parent 07a4b1f commit 667fe23

File tree

15 files changed

+15
-11
lines changed

15 files changed

+15
-11
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ Each Folder contains an example script, picture, and additional information abou
99
## List of devices
1010

1111
### Extension board
12-
You can find info about it and AD converter [here](extension-board) (same as analog converter listed below).
13-
14-
### Sensors
15-
* [Linksprite button](sensor-linksprite-button)
16-
* [Ultrasonic distance sensor](sensor-ultrasonic-distance)
17-
* [Linksprite analog converter](extension-board) for reading data from analog sensors linke:
12+
* [Linksprite analog converter](extension-board) for data about the board and reading data from analog sensors linke:
1813
* temperature,
1914
* light,
2015
* noise,
2116
* acceleration,
2217
* moisture
18+
19+
20+
### Sensors
21+
* [Linksprite and LK button](sensor-button)
22+
* [Linksprite thumb joystick](sensor-thumb-joystick)
23+
* [Ultrasonic distance sensor](sensor-ultrasonic-distance)
2324
* [HD camera](sensor-HD-camera)
2425

2526

extension-board/analogIn.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515

16-
pd = 2 #Analog in (on linker-base ADC)
16+
pd = 0 #Analog in (on linker-base ADC)
1717

1818

1919
spi = spidev.SpiDev()
@@ -33,6 +33,8 @@ def readadc(adcnum):
3333
value=readadc(pd)
3434
volts=(value*3.3)/1024
3535
#print("%4d/1023 => %5.3f V" % (value, volts))
36+
temp = (((value * 1000) - 500)/10)
37+
print temp
3638
time.sleep(0.1)
3739

3840

sensor-button/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This contains info about linksprite-button and lk-button:
2+
3+
![image of device](images/pic1.JPG)
4+
5+
![LK-Button](images/lkbutton.jpg)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sensor-linksprite-button/README.md

-3
This file was deleted.

sensor-lk-button/README.md

-1
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)