makecode-extensions / AT24XX

AT24CXX eeprom package for pxt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AT24XX

AT24CXX eeprom package for pxt

Author: shaoziyang
Date: 2018.May

usage

open your microbit makecode project, in Add Package, paste

https://github.com/microbit-makecode-packages/AT24CXX

to search box then search.

I2C Address

  • 80

API

  • function write_byte(addr: number, dat: number)
    write a byte to special address.

  • function read_byte(addr: number)
    read a byte from special address.

  • function write_word(addr: number, dat: number)
    write a word to special address.

  • function read_word(addr: number)
    read a word from special address.

  • function write_dword(addr: number, dat: number)
    write a dword to special address.

  • function read_dword(addr: number)
    read a dword from special address.

Demo

License

MIT

Copyright (c) 2018, microbit/micropython Chinese community

Supported targets

  • for PXT/microbit

From microbit/micropython Chinese community

About

AT24CXX eeprom package for pxt

License:MIT License


Languages

Language:TypeScript 100.0%