Giter Club home page Giter Club logo

air001_music_spectrum's Introduction

Air001_Music_Spectrum

材料

  1. 麦克风:MAX4466
  2. 亚克力板:67 x 67 x 2 mm 黑茶色 透明非磨砂
  3. Ws2812灯板: 65 x 65 mm 8 x 8 = 64 LEDs
  4. 均光:普通硫酸纸或者用A4纸
  5. MCU:合宙Air001

注意事项

  1. ws2812B灯珠的排列方向不是蛇形走位,如果买到蛇形走位的,需要在程序中稍作修改
  2. 软件顶部工具栏,clock source and Frequency把Air001主频调到HSI 24 MHz,HCLK 48MHz的组合。
  3. 更改代码优化等级,顶部工具栏optimize修改为第二项(smallest(-OS)with LTO),不然会flash over flow
  4. ws2812b链接vbus或5v,不要连接3.3v

关于亮度的问题

可以在myws2812.cpp文件中等比例修改除数的值,从而改变灯的亮度,例如:

void myWs2812b::SetLedColor(uint8_t ledid, uint8_t r, uint8_t g, uint8_t b) {
  // 这里可以更改后面的数值调节亮度,不除的话,亮度比较高,发热比较严重
  LED_MATRIX[ledid][0] = r/5;
  LED_MATRIX[ledid][1] = g/5;
  LED_MATRIX[ledid][2] = b/5;
}

air001_music_spectrum's People

Contributors

wei-ruitong 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.