haas-python-haaseduk1 0.0.8
This is haaseduk1 driver for HaaS Python. HaaS Python is forked from micropython.
License: Apache License, Version 2.0


## HaaS Python介绍
HaaS Python是阿里云IoT团队最新研发的一套低代码编程框架，兼容MicroPython编程规范，依托HaaS平台软硬件积木提供AI、支付、蓝牙配网、云连接、UI等物联网场景常用的能力，从而解决了物联网应用开发难的问题。有了Python轻应用框架，物联网编程不再局限于专业软件开发人员，一般的技术员也可以快速实现复杂的物联网需求。
更多HaaS Python介绍和开发资料见[HaaS Python官网](https://haas.iot.aliyun.com/haasapi/index.html?spm=a2cpu.b16145223.0.0.595660b1dZDX71#/?from=corp),[创意案例](https://haas.iot.aliyun.com/solution?from=crop), [硬件积木](https://haas.iot.aliyun.com/solution/hardware?from=corp)

HaaS Python is a set of low-code programming frameworks newly developed by Alibaba Cloud IoT team. It is compatible with MicroPython programming specifications. It relies on the hardware and software building blocks of the HaaS platform to provide capabilities commonly used in IoT scenarios such as AI, payment, Bluetooth network configuration, cloud connection, and UI. Solve the difficult problem of IoT application development. With the Python light application framework, IoT programming is no longer limited to professional software developers, and general technicians can quickly implement complex IoT requirements.
For more HaaS Python introduction and development materials, see [HaaS Python official website](https://haas.iot.aliyun.com/haasapi/index.html?spm=a2cpu.b16145223.0.0.595660b1dZDX71#/?from=corp), [Creative Case](https://haas.iot.aliyun.com/solution?from=crop), [Hardware Building Blocks](https://haas.iot.aliyun.com/solution/hardware?from=corp)

## 安装方法
* 在[HaaS Python官网](https://haas.iot.aliyun.com/haasapi/index.html?spm=a2cpu.b50127119.0.0.4e1260b1ebMIf1#/)下载开发板对应的固件，并完成固件烧录

Download the firmware corresponding to the development board at [HaaS Python website](https://haas.iot.aliyun.com/haasapi/index.html?spm=a2cpu.b50127119.0.0.4e1260b1ebMIf1#/) and complete the firmware burning

* 在开发板上运行以下命令完成安装和使用,如果您在使用过程中遇到问题，欢迎在[github上向我们提交issue](https://github.com/alibaba/AliOS-Things/issues)，我们的工程师会及时解答

Run the following commands on the development board to complete the installation and use. If you encounter problems during use, please submit an issue to us on [github](https://github.com/alibaba/AliOS-Things/issues), Our engineers will answer in time
```
import upip
upip.install("haas-python-haaseduk1")
import haas-python-haaseduk1
```
# 教育开发板 - HaaS EDU K1

## 一、产品简介

HaaS EDU K1教育开发板的产品介绍及接口接口定义请参考[HaaS EDU K1硬件积木](https://haas.iot.aliyun.com/solution/detail/hardware?versionId=800C5AB3B8A4A88800000001&dataId=800C5AB3B8A4A888)中的说明。

HaaS EDU K1开发板硬件有两个版本，两个版本内置的的外围传感器芯片是不同的，传感器型号及Python驱动链接如下表所示：

|HaaS EDU K1硬件版本|v1.0|v1.1|
|-|-|-|
|温湿度传感器|[SI7006](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/si7006)|[CHT8305](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/cht8305)|
|磁力计传感器|[QMC5883L](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/qmc5883)|[QMC6310U](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/qmc6310)|
|6周陀螺仪传感器|[MPU6050](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/mpu6050)|[QMI8610](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/qmi8610)|
|大气压传感器|[SPL06](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/spl06)|[qmp6988](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/qmp6988)|
|光照及接近程度传感器|[AP3216C](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/ap3216c)|[AP3216C](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/ap3216c)|
|OLED显示屏|[SH1106](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/sh1106)|[SH1106](https://github.com/alibaba/AliOS-Things/tree/master/haas_lib_bundles/python/libraries/sh1106)|

本文主要说明如何用判断HaaS EDU K1的硬件版本和固件版本。

## 二、判断方法
请参考[HaaS EDU K1快速开始](https://haas.iot.aliyun.com/haasapi/index.html/#/Python/docs/zh-CN/startup/HaaS_EDU_K1_startup)中的说明进行开发环境的搭建并创建一个helloworld工程，然后下载[此目录](./)中的所有文件后，覆盖到helloworld工程目录中的所有文件。

将此工程推送到HaaS EDU K1开发板上，系统启动后OLED屏幕上会显示HaaS EDU K1的硬件版本和固件的版本号。
* “K1 HW -”后面跟着的是硬件版本号，v1.0或者是v1.1
* “K1 FW -”后面跟着的是HaaS Python固件的版本号<ver>，如果屏幕显示v2.0.0，则代表固件版本号为HaaS Python v2.0.0