User Manual
47
Set the sound volume of the speaker, assignable with value in [0 ~ 100].
my_pismart.speaker_volume = 60
capture_volume
Boost of microphone, assignable with value in [0 ~ 100].
my_pismart.capture_volume = 100
cpu_temperature
Temperature of the Raspberry Pi's CPU, returning a float value.
cpu_temp = my_pismart.cpu_temperature
A0 ~ A4
Values returned from analog pins A0~A4. Return integer values, unassignable.
A0_val = my_pismart.A0
A1_val = my_pismart.A1
Servo0 ~ Servo7
Output angles of servo when any servo is connected to pin pwm0~pwm7, assignable with
value in [0 ~ 180].
my_pismart.Servo0 = 90
my_pismart.Servo1 = 0
PWM0 ~ PWM7
Output duty cycle of pwm0~pwm7, assignable with value in [0 ~ 100].
my_pismart.Servo0 = 30
my_pismart.Servo1 = 90
LED
Brightness of the LEDs on top of the PiSmart, assignable with value in [0 ~ 100].
my_pismart.LED = 30
my_pismart.LED = 90
SunFounder