SHENZHEN I/O

SHENZHEN I/O

评价数不足
Tesla Challenge 19: Multicolored Lights
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
2.500 KB
2017 年 4 月 8 日 上午 11:24
1 项改动说明 ( 查看 )

订阅以下载
Tesla Challenge 19: Multicolored Lights

在 89o 的 1 个合集中
SHENZHEN I/O Tesla Challenge Pack
24 件物品
描述
Subject: CHRISTMAS TIME!
From: Carl Tesky <carl@longteng-co-ltd.gd.cn>

Let's get festive! It's already September 18, 2027, and Christmas is coming! It's about time we created some Christmas lights that blink in pseudorandom patterns!
For the record: Yes, companies DO begin production this early.

---------

Small hint: Control three colors with a DX300, and figure out the fourth color from the other three.

Big hint: At any given time, the DX300 is either in input mode or output mode, which is a bummer. However, an OR gate or a NOT gate is a way around that.

Optimization tip: Control the lights during different time intervals with different microcontrollers. This will make you use some rather unusual parameters for the slp command, such as
slp 12 slp 21 slp 36