Skip to content

Commit

Permalink
Update the “Hello World” demo programs naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mesheets committed Jul 13, 2024
1 parent 9863ff9 commit df8442f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions demo/c++/Makefile.sub
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
### bibo - another LEGO Mindstorms OS
### --------------------------------------------------------------------------

DEMO_CPP_SOURCES1=c++.cpp
DEMO_CPP_SOURCES1=hello-C++.cpp
DEMO_CPP_SOURCES=$(DEMO_CPP_SOURCES1:%=demo/c++/%)
DEMO_CPP_PROGRAMS=$(patsubst %.cpp,%.lx,$(DEMO_CPP_SOURCES))

# extra dynamic sources - program name (e.g. helloworld.c/.cpp) is always assumed
# NOTE: must specify path (is relative to the directory of the main Makefile)
c++_SRC =
hello-C++_SRC =

DEMO_CPP_SOURCES_ALL = $(DEMO_CPP_SOURCES) \
$(foreach prog,$(DEMO_CPP_PROGRAMS:%.lx=%),$($(notdir $(prog))_SRC))
Expand Down
2 changes: 1 addition & 1 deletion demo/c++/c++.cpp → demo/c++/hello-C++.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class StateChanger {
class DisplayState : public StateChanger {
public:
void enable() {
cputc_native_user(0, CHAR_o, CHAR_n, 0); // on
cputc_native_user(CHAR_H, CHAR_E, CHAR_PARALLEL, CHAR_O); // HEllO
}

void disable() {
Expand Down
4 changes: 2 additions & 2 deletions demo/c/Makefile.sub
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
### bibo - another LEGO Mindstorms OS
### --------------------------------------------------------------------------

DEMO_C_SOURCES1=helloworld.c helloworld_lnp.c rover.c linetrack.c robots.c \
DEMO_C_SOURCES1=hello-C.c helloworld_lnp.c rover.c linetrack.c robots.c \
screen.c sound.c trailerbot.c cpu.c dccthrottle.c memtest.c \
edgecounting.c powerfunctions.c
DEMO_C_SOURCES=$(DEMO_C_SOURCES1:%=demo/c/%)
DEMO_C_PROGRAMS=$(patsubst %.c,%.lx,$(DEMO_C_SOURCES))

# extra dynamic sources - program name (e.g. helloworld.c/.cpp) is always assumed
# NOTE: must specify path (is relative to the directory of the main Makefile)
helloworld_SRC =
hello-C_SRC =
helloworld_lnp_SRC =
rover_SRC =
linetrack_SRC =
Expand Down
File renamed without changes.

0 comments on commit df8442f

Please sign in to comment.