Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
b29cbc12
Commit
b29cbc12
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Standalone build without the Arduino IDE
parent
760475eb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+4
-11
4 additions, 11 deletions
.gitignore
Makefile
+58
-0
58 additions, 0 deletions
Makefile
src/hcolor.h
+0
-0
0 additions, 0 deletions
src/hcolor.h
src/main.cpp
+2
-2
2 additions, 2 deletions
src/main.cpp
with
64 additions
and
13 deletions
.gitignore
+
4
−
11
View file @
b29cbc12
# Compiled Object files
*.slo
*.lo
*.elf
*.hex
*.o
# Compiled Dynamic libraries
*.so
*.dylib
# Compiled Static libraries
*.lai
*.la
*.a
*.d
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
58
−
0
View file @
b29cbc12
# The name of your project (used to name the compiled .hex file)
TARGET
=
fadecandy
# configurable options
OPTIONS
=
-DF_CPU
=
48000000
-DUSB_SERIAL
-DLAYOUT_US_ENGLISH
# options needed by many Arduino libraries to configure for Teensy 3.0
OPTIONS
+=
-D__MK20DX128__
-DARDUIO
=
104
-DARDUINO
# Sources
C_FILES
=
$(
wildcard src/
*
.c
)
$(
wildcard teensy3/
*
.c
)
CPP_FILES
=
$(
wildcard src/
*
.cpp
)
$(
wildcard teensy3/
*
.cpp
)
# Headers
INCLUDES
=
-Isrc
-Iteensy3
# CPPFLAGS = compiler options for C and C++
CPPFLAGS
=
-Wall
-g
-Os
-mcpu
=
cortex-m4
-mthumb
-nostdlib
-MMD
$(
OPTIONS
)
$(
INCLUDES
)
# compiler options for C++ only
CXXFLAGS
=
-std
=
gnu++0x
-felide-constructors
-fno-exceptions
-fno-rtti
# compiler options for C only
CFLAGS
=
# linker script
LDSCRIPT
=
teensy3/mk20dx128.ld
# linker options
LDFLAGS
=
-Os
-Wl
,--gc-sections
-mcpu
=
cortex-m4
-mthumb
-T
$(
LDSCRIPT
)
# additional libraries to link
LIBS
=
-lm
# toolchain
CC
=
arm-none-eabi-gcc
CXX
=
arm-none-eabi-g++
OBJCOPY
=
arm-none-eabi-objcopy
SIZE
=
arm-none-eabi-size
OBJS
:=
$(
C_FILES:.c
=
.o
)
$(
CPP_FILES:.cpp
=
.o
)
all
:
$(TARGET).hex
$(TARGET).elf
:
$(OBJS) $(LDSCRIPT)
$(
CC
)
$(
LDFLAGS
)
-o
$@
$(
OBJS
)
%.hex
:
%.elf
$(
SIZE
)
$<
$(
OBJCOPY
)
-O
ihex
-R
.eeprom
$<
$@
# compiler generated dependency info
-include
$(OBJS:.o=.d)
clean
:
rm
-f
src/
*
.d src/
*
.o teensy3/
*
.o teensy3/
*
.d
$(
TARGET
)
.elf
$(
TARGET
)
.hex
.PHONY
:
clean install
This diff is collapsed.
Click to expand it.
fc_firmware
/hcolor.h
→
src
/hcolor.h
+
0
−
0
View file @
b29cbc12
File moved
This diff is collapsed.
Click to expand it.
fc_firmware/fc_firmware.ino
→
src/main.cpp
+
2
−
2
View file @
b29cbc12
...
...
@@ -21,13 +21,13 @@ void setup()
leds
.
begin
();
for
(
unsigned
i
=
0
;
i
<
ledsTotal
;
++
i
)
{
pixbuf
.
pixels
[
i
].
color
=
HColor16
(
0x
1
080
,
0x0080
,
0x0080
);
pixbuf
.
pixels
[
i
].
color
=
HColor16
(
0x
0
080
,
0x0080
,
0x0080
);
}
}
void
loop
()
{
pixbuf
.
pixels
[
0
].
color
.
r
=
millis
()
&
0xffff
;
pixbuf
.
pixels
[
0
].
color
.
b
=
millis
()
&
0xffff
;
pixbuf
.
show
(
leds
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment