檢視 Maixduino 的原始碼
←
Maixduino
前往:
導覽
、
搜尋
由於下列原因,您沒有權限進行 編輯此頁面 的動作:
您請求的操作只有這個群組的使用者能使用:
使用者
您可以檢視並複製此頁面的原始碼。
== Booting message == <pre> [MAIXPY]Pll0:freq:832000000 [MAIXPY]Pll1:freq:398666666 [MAIXPY]Pll2:freq:45066666 [MAIXPY]cpu:freq:416000000 [MAIXPY]kpu:freq:398666666 [MAIXPY]Flash:0xc8:0x17 open second core... mallocmallocmallocmallocgc heap=0x8027ccb0-0x802fccb0(524288) [MaixPy] init end __ __ _____ __ __ _____ __ __ | \/ | /\ |_ _| \ \ / / | __ \ \ \ / / | \ / | / \ | | \ V / | |__) | \ \_/ / | |\/| | / /\ \ | | > < | ___/ \ / | | | | / ____ \ _| |_ / . \ | | | | |_| |_| /_/ \_\ |_____| /_/ \_\ |_| |_| Official Site : https://www.sipeed.com Wiki : https://maixpy.sipeed.com MicroPython v0.5.0 on 2019-12-11; Sipeed_M1 with kendryte-k210 Type "help()" for more information. >>> </pre> == Toolchain == <pre> git clone https://github.com/kendryte/kendryte-gnu-toolchain cd kendryte-gnu-toolchain git submodule update --init --recursive </pre> === Prerequisites === <pre> sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev </pre> === Build === <pre> ./configure --prefix=/opt/kendryte-toolchain --with-cmodel=medany --with-arch=rv64imafc --with-abi=lp64f make -j8 </pre> == FW == <pre> git clone https://github.com/sipeed/MaixPy.git git submodule update --recursive --init </pre> === Install dependencies === <pre> sudo apt update sudo apt install python3 python3-pip build-essential cmake sudo pip3 install -r requirements.txt </pre> === Configure project === <pre> cd MaixPy cd projects/maixpy_k210 python3 project.py --toolchain /opt/kendryte-toolchain/bin --toolchain-prefix riscv64-unknown-elf- config </pre> === Customize FW === <pre> python3 project.py menuconfig </pre> === Build === <pre> python3 project.py build </pre> === Flash to the board === <pre> python3 project.py -B maixduino -p /dev/ttyUSB0 -b 1500000 -S flash </pre> == Example == <pre> import sensor import image import lcd lcd.init() sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.run(1) while True: img=sensor.snapshot() lcd.display(img) </pre>
返回「
Maixduino
」頁面
導覽選單
個人工具
登入
命名空間
頁面
討論
變體
檢視
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
近期變更
隨機頁面
說明
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊