Skip to content

Commit

Permalink
fix button A, B
Browse files Browse the repository at this point in the history
  • Loading branch information
akkera102 committed Jul 12, 2016
1 parent b55dae7 commit 45643a5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 1,118 deletions.
1 change: 1 addition & 0 deletions readme_jp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ https://www.geocities.co.jp/Hollywood-Kouen/9343/music.html


������
v1.03 2016/07/12 A�{�^����B�{�^���̊ԈႢ���C��
v1.02 2016/05/17 Arduboy 1.0��osx�X�N���v�g��lj�
v1.01 2016/02/23 64bit�p�\�R����reset�ł��Ȃ������C��
v1.00 2015/12/25 �Ƃ肠��������
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ MAKEFLAGS +=--no-print-directory

BINPATH = "C:/Program Files/Arduino/hardware/tools/avr/bin/"
CONFFILE = "C:/Program Files/Arduino/hardware/tools/avr/etc/avrdude.conf"
COM = COM4
ARDUBOY_MODEL = ARDUBOY_10
COM = COM9

ARDUBOY_MODEL = ARDUBOY_10
#ARDUBOY_MODEL = ARDUBOY_DEVKIT

#=============================================================================
Expand Down
4 changes: 2 additions & 2 deletions src/lib/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ enum {

#elif defined(ARDUBOY_DEVKIT)

KEY_A = _BV(0),
KEY_B = _BV(1),
KEY_A = _BV(1),
KEY_B = _BV(0),
KEY_R = _BV(2),
KEY_U = _BV(4),
KEY_L = _BV(5),
Expand Down
2 changes: 1 addition & 1 deletion src/make_usb.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cls
goto loop

:usb
..\tool\reset COM5
..\tool\reset COM10
make usb
avr-size test.elf -C --mcu=atmega32u4

Expand Down
4 changes: 2 additions & 2 deletions src/ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ void ShipFire(void)

if(trg & KEY_A)
{
fx = Ship.fx + FT(SHIP_CX);
fx = Ship.fx - FT(BULLET1_CX);
}
else
{
fx = Ship.fx - FT(BULLET1_CX);
fx = Ship.fx + FT(SHIP_CX);
}

BulletShipSet(fx, Ship.fy + (FrameGetCnt() & 0x40) ? 0 : FT(1));
Expand Down
7 changes: 3 additions & 4 deletions test.bat
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
@echo off
SET VAL1="C:\Program Files\Arduino\hardware\tools\avr\bin"
SET VAL2=COM5
SET VAL2=COM10
SET VAL3="C:\Program Files\Arduino\hardware\tools\avr\etc\avrdude.conf"
SET VAL4=COM4
SET VAL5=test_arduboy_10.hex
SET VAL4=COM9

set PATH=%VAL1%;%PATH%


tool\reset %VAL2%
avrdude -C%VAL3% -v -patmega32u4 -cavr109 -P%VAL4% -b57600 -D -Uflash:w:%VAL5%:i
avrdude -C%VAL3% -v -patmega32u4 -cavr109 -P%VAL4% -b57600 -D -Uflash:w:test.hex:i

pause
2 changes: 1 addition & 1 deletion test_arduboy_10.hex → test.hex
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@
:102550002302809121022DE048E18C5F0E94AD1C96
:102560008093240208950F931F93CF93DF930E94CB
:10257000F51583FD08C082FF22C0C0912002D091D2
:102580002102D65005C0C0912002D0912102D45E14
:102580002102D45E05C0C0912002D0912102D65014
:1025900000912202109123020E942F158074080FCF
:1025A000111D012B19F060E070E002C060E071E0E5
:1025B000CE01DF91CF911F910F910C948F1BDF9172
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export avrdudeconf=/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf
export uart=/dev/tty.usbmodem1421
export hexfile=test_arduboy_10.hex
export hexfile=test.hex

python -c "import serial;ser=serial.Serial('/dev/tty.usbmodem1421',1200);ser.write('');ser.close()"
sleep 2
Expand Down
Loading

0 comments on commit 45643a5

Please sign in to comment.