GithubHelp home page GithubHelp logo

stephanemartin / pxt-maqueen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dfrobot/pxt-maqueen

0.0 1.0 0.0 347 KB

Maqueen is an easy-to-use programming educational Robot

Home Page: https://dfrobot.github.io/pxt-maqueen/

License: MIT License

Makefile 0.17% C++ 74.03% TypeScript 25.81%

pxt-maqueen's Introduction

Maqueen

Maqueen is an easy-to-use programming educational Robot

Basic usage

  • Set the direction and speed of Maqueen motor
 maqueen.motorRun(maqueen.Motors.M1, maqueen.Dir.CW, 120)
 maqueen.motorRun(maqueen.Motors.M2, maqueen.Dir.CCW, 120)
  • Read ultrasonic sensor
basic.showNumber(maqueen.Ultrasonic(PingUnit.Centimeters))
  • Set the Maqueen servos
maqueen.servoRun(maqueen.Servos.S1, 90)
  • Stop the Maqueen motor
maqueen.motorStop(maqueen.Motors.M1)
  • Read line tracking sensor
serial.writeNumber(maqueen.readPatrol(maqueen.Patrol.PatrolLeft))
  • Turn on/off the LEDs
maqueen.writeLED(maqueen.LED.LEDLeft, maqueen.LEDswitch.turnOn)
  • Read IR sensor value
basic.showNumber(maqueen.IR_read())
  • Read the version number
basic.showString(maqueen.IR_read_version())

License

MIT

Copyright (c) 2018, microbit/micropython Chinese community

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)

pxt-maqueen's People

Contributors

albjeremias avatar gustavvvo2 avatar izikeros avatar jhlucky avatar kazuchikanakagawa avatar mao172 avatar mquinson avatar muucha avatar nenahov avatar nsteinmetz avatar onionstack avatar ouki-wang avatar t-sa-sa-ki avatar tangjie133 avatar wxzed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.