APIs/MicroPython/microbit.api

branch
eric7
changeset 53
f69d7f9ab8e4
diff -r c8ea815f673d -r f69d7f9ab8e4 APIs/MicroPython/microbit.api
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/APIs/MicroPython/microbit.api	Tue Sep 27 15:56:36 2022 +0200
@@ -0,0 +1,309 @@
+audio.AudioFrame?1()
+audio.is_playing?4()
+audio.play?4(source, wait=True, pin=pin0, return_pin=None)
+audio.stop?4()
+machine.disable_irq?4()
+machine.enable_irq?4()
+machine.freq?4()
+machine.reset?4()
+machine.time_pulse_us?4(pin, pulse_level, timeout_us=1000000)
+machine.unique_id?4()
+microbit.Button.get_presses?4()
+microbit.Button.is_pressed?4()
+microbit.Button.was_pressed?4()
+microbit.Image.ANGRY?7
+microbit.Image.ARROW_E?7
+microbit.Image.ARROW_N?7
+microbit.Image.ARROW_NE?7
+microbit.Image.ARROW_NW?7
+microbit.Image.ARROW_S?7
+microbit.Image.ARROW_SE?7
+microbit.Image.ARROW_SW?7
+microbit.Image.ARROW_W?7
+microbit.Image.ASLEEP?7
+microbit.Image.BUTTERFLY?7
+microbit.Image.CHESSBOARD?7
+microbit.Image.CLOCK10?7
+microbit.Image.CLOCK11?7
+microbit.Image.CLOCK12?7
+microbit.Image.CLOCK1?7
+microbit.Image.CLOCK2?7
+microbit.Image.CLOCK3?7
+microbit.Image.CLOCK4?7
+microbit.Image.CLOCK5?7
+microbit.Image.CLOCK6?7
+microbit.Image.CLOCK7?7
+microbit.Image.CLOCK8?7
+microbit.Image.CLOCK9?7
+microbit.Image.CONFUSED?7
+microbit.Image.COW?7
+microbit.Image.DIAMOND?7
+microbit.Image.DIAMOND_SMALL?7
+microbit.Image.DUCK?7
+microbit.Image.FABULOUS?7
+microbit.Image.GHOST?7
+microbit.Image.GIRAFFE?7
+microbit.Image.HAPPY?7
+microbit.Image.HEART?7
+microbit.Image.HEART_SMALL?7
+microbit.Image.HOUSE?7
+microbit.Image.MEH?7
+microbit.Image.MUSIC_CROTCHET?7
+microbit.Image.MUSIC_QUAVER?7
+microbit.Image.MUSIC_QUAVERS?7
+microbit.Image.NO?7
+microbit.Image.PACMAN?7
+microbit.Image.PITCHFORK?7
+microbit.Image.RABBIT?7
+microbit.Image.ROLLERSKATE?7
+microbit.Image.SAD?7
+microbit.Image.SILLY?7
+microbit.Image.SKULL?7
+microbit.Image.SMILE?7
+microbit.Image.SNAKE?7
+microbit.Image.SQUARE?7
+microbit.Image.SQUARE_SMALL?7
+microbit.Image.STICKFIGURE?7
+microbit.Image.SURPRISED?7
+microbit.Image.SWORD?7
+microbit.Image.TARGET?7
+microbit.Image.TORTOISE?7
+microbit.Image.TRIANGLE?7
+microbit.Image.TRIANGLE_LEFT?7
+microbit.Image.TSHIRT?7
+microbit.Image.UMBRELLA?7
+microbit.Image.XMAS?7
+microbit.Image.YES?7
+microbit.Image.blit?4(src, x, y, width, height, xdest=0, ydest=0)
+microbit.Image.copy?4()
+microbit.Image.crop?4(x, y, width, height)
+microbit.Image.fill?4(value)
+microbit.Image.get_pixel?4(x, y)
+microbit.Image.height?4()
+microbit.Image.invert?4()
+microbit.Image.set_pixel?4(x, y, value)
+microbit.Image.shift_down?4(n)
+microbit.Image.shift_left?4(n)
+microbit.Image.shift_right?4(n)
+microbit.Image.shift_up?4(n)
+microbit.Image.width?4()
+microbit.Image?1(stringOrWidth=None, height=None, buffer=None)
+microbit.MicroBitAnalogDigitalPin.NO_PULL?7
+microbit.MicroBitAnalogDigitalPin.PULL_DOWN?7
+microbit.MicroBitAnalogDigitalPin.PULL_UP?7
+microbit.MicroBitAnalogDigitalPin.get_analog_period_microseconds?4()
+microbit.MicroBitAnalogDigitalPin.get_mode?4()
+microbit.MicroBitAnalogDigitalPin.get_pull?4()
+microbit.MicroBitAnalogDigitalPin.read_analog?4()
+microbit.MicroBitAnalogDigitalPin.read_digital?4()
+microbit.MicroBitAnalogDigitalPin.set_analog_period?4(period)
+microbit.MicroBitAnalogDigitalPin.set_analog_period_microseconds?4(period)
+microbit.MicroBitAnalogDigitalPin.set_pull?4(mode)
+microbit.MicroBitAnalogDigitalPin.write_analog?4(value)
+microbit.MicroBitAnalogDigitalPin.write_digital?4(value)
+microbit.MicroBitDigitalPin.NO_PULL?7
+microbit.MicroBitDigitalPin.PULL_DOWN?7
+microbit.MicroBitDigitalPin.PULL_UP?7
+microbit.MicroBitDigitalPin.get_analog_period_microseconds?4()
+microbit.MicroBitDigitalPin.get_mode?4()
+microbit.MicroBitDigitalPin.get_pull?4()
+microbit.MicroBitDigitalPin.read_digital?4()
+microbit.MicroBitDigitalPin.set_analog_period?4(period)
+microbit.MicroBitDigitalPin.set_analog_period_microseconds?4(period)
+microbit.MicroBitDigitalPin.set_pull?4(mode)
+microbit.MicroBitDigitalPin.write_analog?4(value)
+microbit.MicroBitDigitalPin.write_digital?4(value)
+microbit.MicroBitTouchOnlyPin.CAPACITIVE?7
+microbit.MicroBitTouchOnlyPin.RESISTIVE?7
+microbit.MicroBitTouchOnlyPin.is_touched?4()
+microbit.MicroBitTouchOnlyPin.set_touch_mode?4(mode)
+microbit.MicroBitTouchPin.CAPACITIVE?7
+microbit.MicroBitTouchPin.NO_PULL?7
+microbit.MicroBitTouchPin.PULL_DOWN?7
+microbit.MicroBitTouchPin.PULL_UP?7
+microbit.MicroBitTouchPin.RESISTIVE?7
+microbit.MicroBitTouchPin.get_analog_period_microseconds?4()
+microbit.MicroBitTouchPin.get_mode?4()
+microbit.MicroBitTouchPin.get_pull?4()
+microbit.MicroBitTouchPin.is_touched?4()
+microbit.MicroBitTouchPin.read_analog?4()
+microbit.MicroBitTouchPin.read_digital?4()
+microbit.MicroBitTouchPin.set_analog_period?4(period)
+microbit.MicroBitTouchPin.set_analog_period_microseconds?4(period)
+microbit.MicroBitTouchPin.set_pull?4(mode)
+microbit.MicroBitTouchPin.set_touch_mode?4(mode)
+microbit.MicroBitTouchPin.write_analog?4(value)
+microbit.MicroBitTouchPin.write_digital?4(value)
+microbit.Sound.GIGGLE?7
+microbit.Sound.HAPPY?7
+microbit.Sound.HELLO?7
+microbit.Sound.MYSTERIOUS?7
+microbit.Sound.SAD?7
+microbit.Sound.SLIDE?7
+microbit.Sound.SOARING?7
+microbit.Sound.SPRING?7
+microbit.Sound.TWINKLE?7
+microbit.Sound.YAWN?7
+microbit.SoundEvent.LOUD?7
+microbit.SoundEvent.QUIET?7
+microbit.accelerometer.current_gesture?4()
+microbit.accelerometer.get_gestures?4()
+microbit.accelerometer.get_values?4()
+microbit.accelerometer.get_x?4()
+microbit.accelerometer.get_y?4()
+microbit.accelerometer.get_z?4()
+microbit.accelerometer.is_gesture?4(name)
+microbit.accelerometer.was_gesture?4(name)
+microbit.button_a?7
+microbit.button_b?7
+microbit.compass.calibrate?4()
+microbit.compass.clear_calibration?4()
+microbit.compass.get_field_strength?4()
+microbit.compass.get_x?4()
+microbit.compass.get_y?4()
+microbit.compass.get_z?4()
+microbit.compass.heading?4()
+microbit.compass.is_calibrated?4()
+microbit.display.clear?4()
+microbit.display.get_pixel?4(x, y)
+microbit.display.is_on?4()
+microbit.display.off?4()
+microbit.display.on?4()
+microbit.display.read_light_level?4()
+microbit.display.scroll?4(value, delay=150, *, wait=True, loop=False, monospace=False)
+microbit.display.set_pixel?4(x, y, value)
+microbit.display.show?4(image)
+microbit.display.show?4(value, delay=400, *, wait=True, loop=False, clear=False)
+microbit.i2c.init?4(freq=100000, sda=pin20, scl=pin19)
+microbit.i2c.read?4(addr, n, repeat=False)
+microbit.i2c.scan?4()
+microbit.i2c.write?4(addr, buf, repeat=False)
+microbit.microphone.current_event?4()
+microbit.microphone.get_events?4()
+microbit.microphone.is_event?4(event)
+microbit.microphone.set_threshold?4(event, value)
+microbit.microphone.sound_level?4()
+microbit.microphone.was_event?4(event)
+microbit.panic?4(code)
+microbit.pin0?7
+microbit.pin10?7
+microbit.pin11?7
+microbit.pin12?7
+microbit.pin13?7
+microbit.pin14?7
+microbit.pin15?7
+microbit.pin16?7
+microbit.pin19?7
+microbit.pin1?7
+microbit.pin20?7
+microbit.pin2?7
+microbit.pin3?7
+microbit.pin4?7
+microbit.pin5?7
+microbit.pin6?7
+microbit.pin7?7
+microbit.pin8?7
+microbit.pin9?7
+microbit.pin_logo?7
+microbit.pin_speaker?7
+microbit.reset?4()
+microbit.running_time?4()
+microbit.set_volume?4(volume)
+microbit.sleep?4(ms)
+microbit.speaker.off?4()
+microbit.speaker.on?4()
+microbit.spi.init?4(baudrate=1000000, bits=8, mode=0, sclk=pin13, mosi=pin15, miso=pin14)
+microbit.spi.read?4(nbytes)
+microbit.spi.write?4(buffer)
+microbit.spi.write_readinto?4(out_buffer, in_buffer)
+microbit.temperature?4()
+microbit.uart.EVEN?7
+microbit.uart.ODD?7
+microbit.uart.any?4()
+microbit.uart.init?4(baudrate=9600, bits=8, parity=None, stop=1, *, tx=None, rx=None)
+microbit.uart.read?4()
+microbit.uart.read?4(nbytes)
+microbit.uart.readinto?4(buf)
+microbit.uart.readinto?4(buf, nbytes)
+microbit.uart.readline?4()
+microbit.uart.write?4(buf)
+micropython.const?4(expr)
+micropython.heap_lock?4()
+micropython.heap_unlock?4()
+micropython.kbd_intr?4(chr)
+micropython.mem_info?4()
+micropython.mem_info?4(verbose)
+micropython.opt_level?4()
+micropython.opt_level?4(level)
+micropython.qstr_info?4()
+micropython.qstr_info?4(verbose)
+micropython.stack_use?4()
+music.BADDY?7
+music.BA_DING?7
+music.BIRTHDAY?7
+music.BLUES?7
+music.CHASE?7
+music.DADADADUM?7
+music.ENTERTAINER?7
+music.FUNERAL?7
+music.FUNK?7
+music.JUMP_DOWN?7
+music.JUMP_UP?7
+music.NYAN?7
+music.ODE?7
+music.POWER_DOWN?7
+music.POWER_UP?7
+music.PRELUDE?7
+music.PUNCHLINE?7
+music.PYTHON?7
+music.RINGTONE?7
+music.WAWAWAWAA?7
+music.WEDDING?7
+music.get_tempo?4()
+music.pitch?4(frequency, duration=-1, pin=microbit.pin0, wait=True)
+music.play?4(music, pin=microbit.pin0, wait=True, loop=False)
+music.reset?4()
+music.set_tempo?4(ticks=4, bpm=120)
+music.stop?4(pin=microbit.pin0)
+neopixel.NeoPixel.clear?4()
+neopixel.NeoPixel.fill?4(color)
+neopixel.NeoPixel.show?4()
+neopixel.NeoPixel.write?4()
+neopixel.NeoPixel?1(pin, n, bpp=3)
+os.listdir?4()
+os.remove?4(filename)
+os.size?4(filename)
+os.uname?4()
+radio.RATE_1MBIT?7
+radio.RATE_250KBIT?7
+radio.RATE_2MBIT?7
+radio.config?4(length=32, queue=3, channel=7, power=6, address=0x75626974, group=0, data_rate=RATE_1MBIT)
+radio.off?4()
+radio.on?4()
+radio.receive?4()
+radio.receive_bytes?4()
+radio.receive_bytes_into?4(buffer)
+radio.receive_full?4()
+radio.reset?4()
+radio.send?4(message)
+radio.send_bytes?4(message)
+random.choice?4(seq)
+random.getrandbits?4(n)
+random.randint?4(a, b)
+random.random?4()
+random.randrange?4(start, stop)
+random.randrange?4(start, stop, step)
+random.randrange?4(stop)
+random.seed?4(n)
+random.uniform?4(a, b)
+speech.pronounce?4(phonemes, *, pitch=64, speed=72, mouth=128, throat=128, pin=pin0)
+speech.say?4(words, *, pitch=64, speed=72, mouth=128, throat=128, pin=pin0)
+speech.sing?4(phonemes, *, pitch=64, speed=72, mouth=128, throat=128, pin=pin0)
+speech.translate?4(words)
+utime.sleep?4(seconds)
+utime.sleep_ms?4(ms)
+utime.sleep_us?4(us)
+utime.ticks_add?4(ticks, delta)
+utime.ticks_diff?4(ticks1, ticks2)
+utime.ticks_ms?4()
+utime.ticks_us?4()

eric ide

mercurial