# pengbot

Pengbot is a penguin robot developed by Daehan Won.

![](https://4092286226-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mf1gYI7w-fy2c89mn2-%2F-Mgi6ZF__byPJjvKGvgG%2F-Mgi7g8sV4mG61f-k2FK%2Fpengbot_logo.png?alt=media\&token=32b3208e-fa48-488b-bacc-bfcd7d58433e)

## video

{% embed url="<https://www.youtube.com/watch?v=yMsoQBgu4A4>" %}

## library

{% embed url="<https://github.com/makebot-lab/pengbot-lib>" %}

### method

```
Pengbot Pengbot; //define Pengbot object
Pengbot.ready(); //initalize pengbot
Pengbot.stop(); //stop
Pengbot.forward(/* speed : 0 ~ 90 */); //forward
Pengbot.backward(/* speed : 0 ~ 90 */); //backward
Pengbot.turnleft(/* speed : 0 ~ 90 */); //turn left
Pengbot.turnright(/* speed : 0 ~ 90 */); //turn right
Pengbot.setleft(/* value : 0 ~ 180 */); //set left servo's angle
Pengbot.setright(/* value : 0 ~ 180 */); //set right servo's angle
Pengbot.sound(/* value : 1(happy), 2(sad), 3(surprised), 4(angry), 5(sleepy), 6(joy) */); //play sound
```
