-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate model in comand line #2
Open
carlaecomp
wants to merge
21
commits into
matrix-io:master
Choose a base branch
from
carlaecomp:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
60767fe
test new command
carlaecomp 96235c9
test new command2
carlaecomp 7806801
find brazil_demo
carlaecomp f92fdba
update brazil demo
carlaecomp bb9c3ea
update brazil demo
carlaecomp c578c2f
update
carlaecomp b4e357f
change leds
carlaecomp c5edabe
change leds2
carlaecomp 65bfc7d
change leds3
carlaecomp b94506b
withou loop
carlaecomp bbaae17
loop again
carlaecomp 82242c1
without the loop
carlaecomp 93ad913
clean the code
carlaecomp 194c848
archives config
carlaecomp 9585128
update readme
carlaecomp d43a942
update readme
carlaecomp 16d055e
update readme
carlaecomp 91187ac
update readme
carlaecomp 5303cd9
update readme
carlaecomp ba1424a
update readme
carlaecomp 672dda0
fix
carlaecomp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<s> matrix </s> | ||
<s> everloop </s> | ||
<s> arc </s> | ||
<s> clear </s> | ||
<s> stop </s> | ||
<s> shutdown </s> | ||
<s> now </s> | ||
<s> ipaddress </s> | ||
<s> matrix everloop </s> | ||
<s> matrix clear </s> | ||
<s> matrix stop </s> | ||
<s> matrix ipaddress </s> | ||
<s> matrix game time </s> | ||
<s> matrix one minute </s> | ||
<s> matrix two minutes </s> | ||
<s> matrix three minutes </s> | ||
<s> matrix four minutes </s> | ||
<s> matrix five minutes </s> | ||
<s> matrix ten seconds </s> | ||
<s> matrix ten minutes </s> | ||
<s> matrix brazil </s> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a generated file or user file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the file that will used to generate the model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright 2016 <Admobilize> | ||
* MATRIX Labs [http://creator.matrix.one] | ||
* This file is part of MATRIX Creator HAL | ||
* | ||
* MATRIX Creator HAL is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <unistd.h> | ||
#include <iostream> | ||
|
||
#include "matrix_hal/everloop_image.h" | ||
#include "matrix_hal/everloop.h" | ||
#include "matrix_hal/wishbone_bus.h" | ||
|
||
namespace hal = matrix_hal; | ||
|
||
int main() { | ||
hal::WishboneBus bus; | ||
|
||
bus.SpiInit(); | ||
|
||
hal::Everloop everloop; | ||
hal::EverloopImage image1d; | ||
|
||
everloop.Setup(&bus); | ||
|
||
for (hal::LedValue& led : image1d.leds) { | ||
led.red = 0; | ||
led.green = 0; | ||
led.blue = 0; | ||
led.white = 0; | ||
} | ||
|
||
for (int i = 0; i < 12; ++i){ | ||
image1d.leds[i].green = 20; | ||
} | ||
for (int i = 12; i < 23; ++i){ | ||
image1d.leds[i].white = 20; | ||
} | ||
for (int i = 23; i < 35; ++i){ | ||
image1d.leds[i].blue = 20; | ||
} | ||
|
||
everloop.Write(&image1d); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
markdown heading not match with "Option 1"