Code Monkey home page Code Monkey logo

lyxeer / lightcube Goto Github PK

View Code? Open in Web Editor NEW

This project forked from illusionlee/lightcube

0.0 0.0 0.0 27.8 MB

时光空间立方 一款基于BK7252制作的桌面小工具

License: MIT License

Shell 1.63% Ruby 0.01% C++ 2.59% Python 0.57% Perl 0.17% C 92.60% Objective-C 0.28% Tcl 0.01% C# 0.13% Assembly 0.62% Ada 0.22% Pascal 0.18% SAS 0.01% Makefile 0.67% HTML 0.09% CMake 0.08% Batchfile 0.01% DIGITAL Command Language 0.10% Module Management System 0.01% Yacc 0.04%

lightcube's Introduction

lightcube

​ 时光空间立方 一款基于BK7252制作的桌面小工具

​ 外观是完美的正方体,每个面在未启动时就像一面镜子,启动后则可以看到一个无限五彩斑斓的内部空间。放置于办公桌面,既是一款优雅的装饰品,又是一款具有实用价值的小巧工具。

已完成功能

  • WIFI配置

  • 蓝牙连接

  • 自动连接WIFI

  • 蓝牙搜索

  • 蓝牙配置

  • 时间配置

  • 自动同步时间

  • WS2812呼吸灯

  • WS2812彩虹灯

  • WS2812纯色控制

  • WS2812时长控制

  • LCD显示模式

  • LCD显示时长控制

  • 显示时间、日期、周几

  • 显示一言

  • 显示天气

  • 显示随机数(摇骰子)

  • 震动传感器

目录说明

主要代码放置在/lightcube目录下,其他目录为麻雀一号官方SDK,默认是RT-Thread 3.1.0版本

编译说明

进入根目录,输入scons,等待编译完成即可

引脚安排

19(VUSB):接USB+5V,用于设备供电

20(39):震动开关的信号脚,接震动开关的焊盘

24(P16):引出,连接WS2812焊盘的信号,为SPI_MOSI

36(P5):LCD显示屏的 SDA,接屏幕焊盘的(10号脚)

37(P3):LCD显示屏的 CS,接屏幕焊盘的(8号脚)

38(P4):LCD显示屏的 WR/S DC,接屏幕焊盘的(7号脚)

39(P2):LCD显示屏的 DC/S CLK,接屏幕焊盘的(9号脚)

40(P6):LCD显示屏的 PWM ,通过三极管电路接屏幕焊盘的LCD_LEDK1(2号脚)

53(P11)、52(P10):接CH330N,与USB座连接,RX、TX

预留SPI烧录接口

剩余的VCC/GND 自由布线

注意

服务器地址需要修改为自己的服务器地址,在lightcube/network.c文件中配置。当前服务器为私人服务器,不开放测试。

TODO

  • 新建模具,扩大尺寸
  • 增加电池,可以脱离USB线
  • 灯板重新画板,当前灯板太宽
  • 添加麦克、扬声器,用于语音交互
  • 更换屏幕,当前屏幕尺寸太小,而且需要辅助材料才不漏光
  • 添加更多功能
    • 番茄闹钟(番茄工作法,一种高效的工作学习方法,很适合作为桌面工具的功能)
    • 备忘录
    • 语音漂流瓶(类似微信漂流瓶)
    • 语音助手
    • 闹钟
    • 倒计时
    • 。。。
  • 外观喷漆,保持一致性,做成通体镜像反光效果

以上功能会根据情况,在未来版本逐步添加更新,敬请期待。

备注

原SDK的开源协议为Apache-2.0,请遵守官方开源协议要求。

我自己编写的代码,即/lightcube目录下的源码文件,开源协议定为MIT协议,特此说明。

lightcube's People

Contributors

illusionlee 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.