11th
This commit is contained in:
1 parent
f2a25bf54b
commit
360ee7e80b
9 files changed
+55
-29
No files matched your search
@@ -1,13 +1,10 @@
|
||||
module Spark_I2C 'cat;Output'
|
||||
author FABLAB
|
||||
version 1 1
|
||||
depends '_Gesture (PAJ7620)'
|
||||
choices direction clockwise 'counter-clockwise'
|
||||
description ''
|
||||
variables Gesture
|
||||
|
||||
spec 'r' 'Gesture Read' 'Gesture Read'
|
||||
space
|
||||
spec ' ' 'Motor Driver A' 'Motor Driver A Direction _ Speed _' 'menu.direction num' 'clockwise' 10
|
||||
spec ' ' 'Motor Driver B' 'Motor Driver B Direction _ Speed _' 'menu.direction num' 'clockwise' 10
|
||||
spec 'r' '_Direction' '_Motor Direction _' 'menu.direction' '10'
|
||||
@@ -20,10 +17,6 @@ to Direction Direction {
|
||||
}
|
||||
}
|
||||
|
||||
to 'Gesture Read' {
|
||||
return ('paj7620 read')
|
||||
}
|
||||
|
||||
to 'Motor Driver A' Direction Speed {
|
||||
if ((Direction Direction) == (booleanConstant true)) {
|
||||
i2cSet 0 1 Speed
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
module Spark_PWM 'cat;Control'
|
||||
author 'FABLAB BH'
|
||||
version 1 1
|
||||
depends _Servo
|
||||
choices PWM_pins '1' '9'
|
||||
choices PWM_pins2 '3' '4' '6' '7' '8'
|
||||
choices direction clockwise 'counter-clockwise'
|
||||
@@ -16,9 +15,7 @@ description ''
|
||||
space
|
||||
spec ' ' 'Fan Motor' 'Fan Motor Pin _ Direction _ Speed _ (0-100)' 'menu.PWM_pins menu.direction num' 1 'clockwise' 50
|
||||
spec ' ' 'Fan Motor2' 'Fan Motor Pin _ Direction _ Speed _ (0-1023)' 'menu.PWM_pins menu.direction num' 1 'clockwise' 50
|
||||
space
|
||||
spec ' ' 'Servo' 'Servo Motor Pin _ Speed _ (-100 to 100)' 'menu.servo_pins num' 33 50
|
||||
spec ' ' 'Servo Motor Pin' 'Servo Motor Pin _ Degrees _ (-90 to 90)' 'menu.servo_pins num' 33 90
|
||||
|
||||
|
||||
to Direction Direction {
|
||||
if (Direction == ('[data:toString]' 'counter-clockwise')) {
|
||||
@@ -91,12 +88,3 @@ to 'Fan Motor4' Pin Speed {
|
||||
to 'PWM Pin' Pin {
|
||||
return (at Pin ('[data:makeList]' 13 0 26 27 0 23 16 5 18))
|
||||
}
|
||||
|
||||
to Servo Pin Speed {
|
||||
setServoSpeed Pin Speed
|
||||
}
|
||||
|
||||
to 'Servo Motor Pin' Pin Degrees {
|
||||
setServoAngle Pin Degrees
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user