Compare commits
No commits in common. "d45c7951ec6e5e93a95627aeb0b206e7e0d73fe3" and "841cd6e2e6fe77044a3ae554d3980b5431d7539a" have entirely different histories.
d45c7951ec
...
841cd6e2e6
3 changed files with 5 additions and 26 deletions
|
@ -36,12 +36,3 @@ sudo chmod 666 /dev/ttyUSB0
|
||||||
[StereoNick](https://twitter.com/koujaku)
|
[StereoNick](https://twitter.com/koujaku)
|
||||||
[Peter Sassaman](https://twitter.com/PeterSassaman)
|
[Peter Sassaman](https://twitter.com/PeterSassaman)
|
||||||
[Lucas De Bonet (LucidVR)](https://twitter.com/VrLucid)
|
[Lucas De Bonet (LucidVR)](https://twitter.com/VrLucid)
|
||||||
|
|
||||||
|
|
||||||
### WIP hot glue bump tutorial
|
|
||||||
1. reset the device *press enter key and disconnect power
|
|
||||||
2. align where the bump will be with gravity and generally aim the glue gun opposite gravity
|
|
||||||
3. get coverage starting from the top *wrapping the glue around the screw head
|
|
||||||
4. end with the glue you need for the bump before lifting up and off to round it out
|
|
||||||
5. use the side of the nozzle to reshape as needed
|
|
||||||
|
|
||||||
|
|
|
@ -12,13 +12,12 @@ char in_char = ' ';
|
||||||
struct ServoPin {
|
struct ServoPin {
|
||||||
Servo servo;
|
Servo servo;
|
||||||
int pin;
|
int pin;
|
||||||
int spin; // -1 left, +1 right
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ServoPin servos[6] = {
|
ServoPin servos[6] = {
|
||||||
{Servo(), 14, +1}, {Servo(), 5, -1},
|
{Servo(), 14}, {Servo(), 5},
|
||||||
{Servo(), 12, -1}, {Servo(), 4, +1},
|
{Servo(), 12}, {Servo(), 4},
|
||||||
{Servo(), 13, +1}, {Servo(), 2, -1} // 19 and 21 are untested
|
{Servo(), 13}, {Servo(), 2} // 19 and 21 are untested
|
||||||
};
|
};
|
||||||
|
|
||||||
// braille alphabet
|
// braille alphabet
|
||||||
|
@ -38,11 +37,6 @@ std::unordered_map<char, BrailleChar> braille_map = {
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0
|
0, 0
|
||||||
}}},
|
}}},
|
||||||
{'\n', {{
|
|
||||||
1, 1,
|
|
||||||
1, 1,
|
|
||||||
1, 1
|
|
||||||
}}},
|
|
||||||
{'a', {{
|
{'a', {{
|
||||||
1, 0,
|
1, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
@ -249,8 +243,8 @@ void loop() {
|
||||||
BrailleChar bc = braille_map[in_char];
|
BrailleChar bc = braille_map[in_char];
|
||||||
for (int i = 0; i < 6; i++) {
|
for (int i = 0; i < 6; i++) {
|
||||||
int state = bc.servo_states[i];
|
int state = bc.servo_states[i];
|
||||||
int spin = servos[i].spin < 0 ? (1 - state) : state;
|
int s = i % 2 == 0 ? state : (1 - state);
|
||||||
servos[i].servo.write(spin * 90);
|
servos[i].servo.write(s * 180);
|
||||||
}
|
}
|
||||||
|
|
||||||
old_char = in_char;
|
old_char = in_char;
|
||||||
|
|
|
@ -26,11 +26,6 @@ public class Mono {
|
||||||
0, 0,
|
0, 0,
|
||||||
0, 0
|
0, 0
|
||||||
} },
|
} },
|
||||||
{ '\n', new int[] {
|
|
||||||
1, 1,
|
|
||||||
1, 1,
|
|
||||||
1, 1
|
|
||||||
} },
|
|
||||||
{ 'a', new int[] {
|
{ 'a', new int[] {
|
||||||
1, 0,
|
1, 0,
|
||||||
0, 0,
|
0, 0,
|
||||||
|
@ -375,7 +370,6 @@ public class Mono {
|
||||||
|
|
||||||
KebKey[] keb_keys = new KebKey[] {
|
KebKey[] keb_keys = new KebKey[] {
|
||||||
new() { key = Key.Space, char_ = ' ' },
|
new() { key = Key.Space, char_ = ' ' },
|
||||||
new() { key = Key.Return, char_ = '\n' },
|
|
||||||
new() { key = Key.A, char_ = 'a' },
|
new() { key = Key.A, char_ = 'a' },
|
||||||
new() { key = Key.B, char_ = 'b' },
|
new() { key = Key.B, char_ = 'b' },
|
||||||
new() { key = Key.C, char_ = 'c' },
|
new() { key = Key.C, char_ = 'c' },
|
||||||
|
|
Loading…
Add table
Reference in a new issue