Skip to content

Commit d19a452

Browse files
committed
Tue 13 Aug 2019 23:24:48 EDT PC Engine
1 parent dcb6eb6 commit d19a452

File tree

9 files changed

+51
-512
lines changed

9 files changed

+51
-512
lines changed

Assets/retro-esp32/media.gif

6 Bytes
Loading

Components/odroid-go-pcengine-huexpress/pcengine-go/main/main.c

Lines changed: 0 additions & 480 deletions
This file was deleted.

Launchers/retro-esp32/main/main.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"spectrum", // 3
4949
"a26", // 5
5050
"a78", // 6
51-
"lynx" // 7
51+
"lynx", // 7
5252
"pce" // 8
5353
};
5454

@@ -169,6 +169,7 @@
169169
nvs_close(handle);
170170
//printf("\nGet nvs_get_i8:%d\n", STEP);
171171
}
172+
172173
void set_step_state() {
173174
//printf("\nGet nvs_set_i8:%d\n", STEP);
174175
nvs_handle handle;
@@ -201,6 +202,7 @@
201202
nvs_close(handle);
202203
//printf("\nGet nvs_get_i16:%d\n", ROMS.offset);
203204
}
205+
204206
void set_list_state() {
205207
//printf("\nSet nvs_set_i16:%d", ROMS.offset);
206208
nvs_handle handle;
@@ -393,10 +395,11 @@
393395
x += 2;
394396
y += 6;
395397
w = percentage > 0 ? percentage > 10 ? 10 : percentage : 10;
396-
printf("\nbattery_state.percentage:%d\n(percentage):%d\n(millivolts)%d\n", battery_state.percentage, percentage, battery_state.millivolts);
397398
h = 4;
398399
i = 0;
399400

401+
//printf("\nbattery_state.percentage:%d\n(percentage):%d\n(millivolts)%d\n", battery_state.percentage, percentage, battery_state.millivolts);
402+
400403
int color[11] = {24576,24576,64288,64288,65504,65504,65504,26592,26592,26592,26592};
401404

402405
int fill = color[w];
@@ -693,6 +696,7 @@
693696
};
694697

695698
draw_background();
699+
696700
for(int n = 0; n < COUNT; n++) {
697701
int delta = (n-STEP);
698702
if(delta < 0) {
@@ -707,16 +711,17 @@
707711
SYSTEMS[n].x = GAP/3+NEXT+(GAP*(delta-1));
708712
}
709713
}
714+
710715
clean_up();
711716
draw_systems();
712717
draw_text(16,16,EMULATORS[STEP],false,true);
713718
STEP == 0 ? draw_themes() : get_files();
714719
}
715720

716721
void clean_up() {
717-
int MAX = 688;
722+
int MAX = 736;
718723
for(int n = 0; n < COUNT; n++) {
719-
if(SYSTEMS[n].x > 464) {
724+
if(SYSTEMS[n].x > 512) {
720725
SYSTEMS[n].x -= MAX;
721726
}
722727
if(SYSTEMS[n].x <= -272) {

Launchers/retro-esp32/main/sprites/media.h

Lines changed: 16 additions & 16 deletions
Large diffs are not rendered by default.

Launchers/retro-esp32/sdkconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ CONFIG_FLASH_ENCRYPTION_ENABLED=
3737
#
3838
# Serial flasher config
3939
#
40-
CONFIG_ESPTOOLPY_PORT="/dev/cu.usbserial-A1015RV1"
40+
CONFIG_ESPTOOLPY_PORT="/dev/cu.SLAB_USBtoUART"
4141
CONFIG_ESPTOOLPY_BAUD_115200B=
4242
CONFIG_ESPTOOLPY_BAUD_230400B=
4343
CONFIG_ESPTOOLPY_BAUD_921600B=y

Launchers/retro-esp32/sdkconfig.old

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ CONFIG_FLASH_ENCRYPTION_ENABLED=
3737
#
3838
# Serial flasher config
3939
#
40-
CONFIG_ESPTOOLPY_PORT="/dev/cu.SLAB_USBtoUART"
40+
CONFIG_ESPTOOLPY_PORT="/dev/cu.usbserial-A1015RV1"
4141
CONFIG_ESPTOOLPY_BAUD_115200B=
4242
CONFIG_ESPTOOLPY_BAUD_230400B=
4343
CONFIG_ESPTOOLPY_BAUD_921600B=y

Scripts/branches

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ source helpers/styles
1212
REPO=$(dirname $PWD)
1313
ESP="$REPO/Tools/esp-idf"
1414
ODROID="$REPO/Odroid/odroid-go-firmware"
15-
GOPLAY="$REPO/Launchers/go-play"
15+
GOPLAY="$REPO/Emulators/go-play"
16+
PCE="$REPO/Emulators/odroid-go-pcengine-huexpress"
1617

1718
clear
1819
cd $ESP
@@ -52,3 +53,15 @@ clear
5253
echo "\n--------------------------------------------------------------------------"
5354
echo "\n${unicorn} ${green}Success ${magenta}'go-play'${nc} is now on ${green}$(git rev-parse --abbrev-ref HEAD)${nc} branch"
5455
echo "\n--------------------------------------------------------------------------"
56+
clear
57+
cd $PCE
58+
required="develop"
59+
echo "\n--------------------------------------------------------------------------"
60+
echo "\n${monkey} ${yellow}Checking ${magenta}'pcengine-go'${nc} for ${red}${required}${nc} branch"
61+
echo "\n--------------------------------------------------------------------------"
62+
git checkout -b ${required} origin/${required}
63+
sleep 1
64+
clear
65+
echo "\n--------------------------------------------------------------------------"
66+
echo "\n${unicorn} ${green}Success ${magenta}'pcengine-go'${nc} is now on ${green}$(git rev-parse --abbrev-ref HEAD)${nc} branch"
67+
echo "\n--------------------------------------------------------------------------"

Scripts/helpers/process

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ then
162162
set_clean_option
163163
set_config_option
164164

165-
rm $FIRMWARE_PATH/Bins/gnuboy-go.bin
166-
rm $FIRMWARE_PATH/Bins/nesemu-go.bin
167-
rm $FIRMWARE_PATH/Bins/smsplusgx-go.bin
168-
rm $FIRMWARE_PATH/Bins/handy-go.bin
169-
rm $FIRMWARE_PATH/Bins/prosystem-go.bin
170-
rm $FIRMWARE_PATH/Bins/stella-go.bin
171-
rm $FIRMWARE_PATH/Bins/pcengine-go.bin
165+
# rm $FIRMWARE_PATH/Bins/gnuboy-go.bin
166+
# rm $FIRMWARE_PATH/Bins/nesemu-go.bin
167+
# rm $FIRMWARE_PATH/Bins/smsplusgx-go.bin
168+
# rm $FIRMWARE_PATH/Bins/handy-go.bin
169+
# rm $FIRMWARE_PATH/Bins/prosystem-go.bin
170+
# rm $FIRMWARE_PATH/Bins/stella-go.bin
171+
# rm $FIRMWARE_PATH/Bins/pcengine-go.bin
172172

173173
cd $GOPLAY_PATH
174174

@@ -202,13 +202,13 @@ then
202202
make -j8
203203
cp ./build/smsplusgx-go.bin $FIRMWARE_PATH/Bins/
204204

205-
cd EMULATOR_PATH
205+
cd $EMULATOR_PATH
206206

207207
clear
208208
echo "\n--------------------------------------------------------------------------"
209209
echo "\n${panda} ${green}Compiling ${cyan}prosystem-odroid-go${nc}"
210210
echo "\n--------------------------------------------------------------------------"
211-
cd ../prosystem-odroid-go
211+
cd prosystem-odroid-go
212212
get_clean_option
213213
get_config_option
214214
make -j8

Scripts/ota

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/zsh
22

33
SRC_PATH=`pwd`
4+
REPO=$(dirname $PWD)
45

56
#---------------------------------
67
# Styles

0 commit comments

Comments
 (0)