Giter Site home page Giter Site logo

zhou-peter / tuya-iotos-embeded-mcu-demo-wifi-ble-x9cxxx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tuya-community/tuya-iotos-embeded-mcu-demo-wifi-ble-x9cxxx

0.0 0.0 0.0 280 KB

X9C102,X9C103,X9C104 or X9C503 Digitally Controlled Potentiometer ,by stm32g071

C 96.84% Assembly 3.16%

tuya-iotos-embeded-mcu-demo-wifi-ble-x9cxxx's Introduction

Tuya IoTOS Embedded Wi-Fi & Bluetooth LE Potentiometer

English | 中文

Overview

In this demo, we will show you how to develop with the MCU SDK to enable an X9C104 digital potentiometer to connect to the Tuya IoT Cloud with the Tuya Smart app.

Feature:

  • Set resistance

Get started

Compile and flash

  • Download Tuya IoTOS Embedded code.

  • Run test.uvprojx.

  • Click Compile on the software to download the code.

File introduction

├── user
│   ├── main.c
│   ├── MY_ST_config.h
├── CMSIS
│   ├── system_stm32g0xx.c
│   ├── startup_stm32g071xx.s
├── SYSTEM
│   ├── sys.c
│   ├── sys.h
│   ├── RCC.c
│   ├── RCC.h
│   ├── delay.c
│   ├── delay.h
│   ├── USART.c
│   ├── USART.h
│   ├── IO.c
│   ├── IO.h
│   ├── TIM.c
│   ├── TIM.h
└── SYSTEM
    ├── mcu_api.c
    ├── mcu_api.h
    ├── protocol.c
    ├── protocol.h
    ├── system.c
    ├── system.h
    └── wifi.h

Demo entry

Entry file: main.c

Main function: main()

  • Initialize and configure I/Os, USART, and timer of the MCU. All events are polled and determined in while(1).

Pin configuration

X9C104 UASRT1 SWITCH
PB11 INC PC4 TXD PC13
PB12 U/D PC5 RXD

Reference

Tuya Project Hub

Technical Support

You can get support from Tuya with the following methods:

tuya-iotos-embeded-mcu-demo-wifi-ble-x9cxxx's People

Contributors

coral-hu 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.