Difficulty Level = 3 [What’s this?]
The Video Experimenter shield gives you new ways to interact with your TV. How many times did you wish you could blast someone or something on your TV screen? Now you can! This project lets you control a laser sight using a Wii nunchuk controller and fire an imaginary laser at the screen by pulling the trigger. Have fun.
A Wii nunchuk can be connected to your Arduino using the I2C pins (analog pins 4 and 5). I use a little Wiichuck PCB to make it easy (these are available in the nootropic design store because we sell them for use with Hackvision). Don’t connect the Wiichuck PCB directly on the Arduino analog pins 2-5 because analog pin 2 is used by the Video Experimenter.
Data from the nunchuk is read using the Hackvision Controllers library.
The code is in the example “TVBlaster” in the TVout library for Video Experimenter.
Arduino:1.6.5 (Mac OS X), 板:”Arduino Uno”
In file included from explosions.cpp:1:0:
explosions.h:5: error: ‘prog_uchar’ does not name a type
extern const prog_uchar explosion_bitmaps[];
^
explosions.cpp:3: error: ‘prog_uchar’ does not name a type
PROGMEM const prog_uchar explosion_bitmaps[] = {
^
‘prog_uchar’ does not name a type
报告将会包含更多的信息
“在编译时,输出详细信息”
在 文件>首选项 中启用
Change “prog_uchar” to “unsigned char”.