Code Monkey home page Code Monkey logo

examples's Introduction

Examples

GetStarted

  • Blink - output 3.3 volts and 0 volt on a digital pin alternatively to blink the onboard led.

  • PWM_Brightness_Control - brighten and dim the led continuously by increasing and decreasing the duty cycle of the PWM output.

  • Read_Digital_Input - read and print the input value of digital pin D0, either true or false.

  • Read_Analog_Input - read and print the input voltage of analog pin A0. The value is a float number between 0.0 and 3.3.

SimpleIO

  • Button_control_LED - when the button is pressed, the input value will be changed. If it is detected, turn on the led.

  • Debounce - when the button is pressed, check the input signal in a certain period to ensure the exact status of the button and then turn on the onboard led.

  • Blink_Timer - use the timer to set intereupt and every second the led will be toggled.

  • LEDs_Brightness_Control - brighten and dim three LEDs alternatively by cincreasing and decreasing the duty cycle of the PWM output.

  • Brightness_AnalogIn - set the duty cycle of the PWM output with the float number between 0.0 and 1.0 read from the analog pin.

  • Blink_AnalogIn - change the sleep time with the raw value read from analog pin to change the blink frequency.

  • PWM_Sound_Output - change the frequency of the PWM output to generate different notes.

  • PWM_Melody - list a combination of the frequencies of different pitches to generate a harmonious melody.

AdvancedIO

  • SHT3x - use I2C protocol to communicate with the sensor to get the current temperature and humidity.

examples's People

Contributors

andy0808 avatar aliveghost avatar orangeji11 avatar

Watchers

 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.