Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions chipnomad_player/fonts/Silkscreen/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Silkscreen was created by Jason Kottke and is distributed under the Open Font License, which means that you can use, distribute, or modify it however you wish. More information about the license and Silkscreen is available on the web:

http://scripts.sil.org/OFL
http://www.kottke.org/plus/type/silkscreen/

To install Silkscreen, simply copy the two .ttf files to your fonts directory.
Binary file added chipnomad_player/fonts/Silkscreen/slkscr.ttf
Binary file not shown.
39 changes: 39 additions & 0 deletions tracker/Makefile.funkey
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Funkey S / RG Nano makefile

# Funkey S platform identifier
PLATFORM = funkey

include Makefile.common

# funkey-specific settings
LIBS = $(COMMON_LIBS) platforms/sdl12
OUTPUT_EXT =
# DOCKER = docker run --platform linux/amd64 --rm --user $$(id -u):$$(id -g) -v`pwd`/..:/src -w/src/tracker

#XTRA_CFLAGS = -I${SYSROOT}/usr/include -L${SYSROOT}/usr/lib
XTRA_CFLAGS= -DFUNKEY_BUILD
XTRA_LIBS = -lSDL
CFLAGS = $(COMMON_CFLAGS) $(INCLUDES) $(SOURCES) $(XTRA_CFLAGS)

.PHONY: .funkey.elf
.funkey.elf:
mkdir -p $(BUILD)
$(CC) $(CFLAGS) $(XTRA_LIBS) -o $(BUILD)/chipnomad.funkey.elf

#.PHONY: funkey
#funkey:
# $(DOCKER) nfriedly/miyoo-toolchain:steward make -f Makefile.funkey .funkey CC=gcc

# funkey deployment
APP := ChipNomad

.PHONY: funkey-deploy
funkey-deploy: .funkey.elf
echo TODO actual deploy
cp packaging/funkey-s/ChipNomad.funkey-s.desktop $(BUILD)/
cp packaging/funkey-s/chipnomad.png $(BUILD)/
mksquashfs $(BUILD)/ $(BUILD)/chipnomad.opk

.PHONY: clean
clean:
rm -rf $(BUILD)
6 changes: 6 additions & 0 deletions tracker/packaging/funkey-s/ChipNomad.funkey-s.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=ChipNomad
Comment=A multi-platform tracker with LSDJ-like interface
Exec=chipnomad.funkey.elf
Icon=chipnomad
Categories=applications
Binary file added tracker/packaging/funkey-s/chipnomad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion tracker/platforms/sdl12/corelib_gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@
#include "corelib_gfx.h"
#include "corelib_font.h"

#ifdef FUNKEY_BUILD
#define WINDOW_WIDTH (240)
#define WINDOW_HEIGHT (240)
#define WINDOW_BPP (16)
#else
#define WINDOW_WIDTH (640)
#define WINDOW_HEIGHT (480)
#define WINDOW_BPP (32)
#endif

#define PRINT_BUFFER_SIZE (256)

#define CHAR_X(x) ((x) * fontW * 8)
Expand Down Expand Up @@ -64,7 +72,7 @@ int gfxSetup(int *screenWidth, int *screenHeight) {
return 1;
}

sdlScreen = SDL_SetVideoMode(WINDOW_WIDTH, WINDOW_HEIGHT, 32, SDL_HWSURFACE);
sdlScreen = SDL_SetVideoMode(WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_BPP, SDL_HWSURFACE);
if (!sdlScreen) {
printf("SDL1.2 Set Video Mode Error: %s\n", SDL_GetError());
SDL_Quit();
Expand Down
23 changes: 23 additions & 0 deletions tracker/platforms/sdl12/corelib_mainloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@
#define BTN_VOLUME_DOWN 45
#define BTN_POWER 0
#define BTN_EXIT 0
#elif FUNKEY_BUILD
// Funkey S/RG Nano mapping
#define BTN_UP SDLK_u
#define BTN_DOWN SDLK_d
#define BTN_LEFT SDLK_l
#define BTN_RIGHT SDLK_r
#define BTN_A SDLK_a
#define BTN_B SDLK_b
#define BTN_X SDLK_x
#define BTN_Y SDLK_y
#define BTN_Z 0
#define BTN_L1 0
#define BTN_R1 0
#define BTN_L2 0
#define BTN_R2 0
#define BTN_SELECT SDLK_m
#define BTN_START SDLK_s
#define BTN_MENU 306
#define BTN_VOLUME_UP 61
#define BTN_VOLUME_DOWN 45
#define BTN_POWER 0
#define BTN_EXIT 0

#else
// RG35xx mapping
#define BTN_UP 119
Expand Down
Loading