Skip to content
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

Added JS C module Support MRAA Examples #49

Merged
merged 21 commits into from Jul 9, 2018

Conversation

vaishnavachath
Copy link
Contributor

@jadonk
Copy link
Owner

jadonk commented Jun 25, 2018

Doh! Looks like we landed on a travis-ci landmine. We'll want to fix to verify style and rendering. We need to make sure this packages cleanly using the build script for Debian.

fix internal linking error at writeCModule
PBUI work was started from Support/bone101/UI/ which was not being tested,html-proofer throws :
 internal script /bone101/Support/bone101/PBUI/pbui.js does not exist (line 66) ,
 even when there aren't any issues while serving.
Copy link
Owner

@jadonk jadonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I worry about bringing in the build for MRAA and don't know specifically what it is building. Can you just include Makefiles in the examples?

@@ -36,7 +36,7 @@ clean:

test:
ifdef HTMLPROOFER
$(HTMLPROOFER) "./bone101" --disable-external --alt-ignore "/.*/" --only-4xx --url-ignore "/#.*/" --url-swap "/bone101:" --file-ignore "/Support/bone101/UI/","/Support/bonecard/create/"
$(HTMLPROOFER) "./bone101" --disable-external --alt-ignore "/.*/" --only-4xx --url-ignore "/#.*/" --url-swap "/bone101:" --file-ignore "/Support/bone101/UI/","/Support/bone101/PBUI/","/Support/bonecard/create/"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I plan to reverse this and simply remove the reference to the missing file.

Makefile Outdated
@@ -4,10 +4,17 @@ CLOUD9_DIR:=/var/lib/cloud9
JEKYLL:=$(shell which jekyll)
HTMLPROOFER:=$(shell which htmlproofer)
NPM:=$(shell which npm)
MRAA:=$(shell which mraa-gpio)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this will only make on-target. Why is it part of the documentation?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I forget that examples are part of the repo too... These need to be split into two repos. :-(

Examples should be built when run.

Makefile Outdated

all: ./bone101

./bone101: Makefile _config.yml
ifdef MRAA
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't do a build here for on-target examples. This build is for the bone101 HTML content.

Makefile Outdated
@@ -4,10 +4,17 @@ CLOUD9_DIR:=/var/lib/cloud9
JEKYLL:=$(shell which jekyll)
HTMLPROOFER:=$(shell which htmlproofer)
NPM:=$(shell which npm)
MRAA:=$(shell which mraa-gpio)
EXDIR:= ./examples/extras/C-modulesFromJS/MRAA_Examples/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this needs to be built for packaging, it should be done in another Makefile, perhaps called by this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, i am a little bit confused regarding your comments on the Makefile, presently i have added a Makefile in the examples directory which handles the compilation and that Makefile is called by this main /Makefile , for now i will revert the changes made to the main makefile and keep the Makefile in the examples directory as is.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine. The top-level Makefile isn't for inclusion on the target, it is for building the package that gets put on the target.

@@ -146,8 +147,8 @@ div.bonecard-micro:before {
}

.bonecard-code .code {
width: 834px;
height: 527px;
width: 844px;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the new dimensions? Goal was for this to be "phone friendly". Please use resolutions that will be good for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the dimensions to try to fix this issue : #28 , will revert the change

removed the calling of MRAA examples makefile from the main Makefile
reverted the related changes to the main Makefile
reverted the change made to bonecard.code dimensions
* add hardware object functions
* changed order of digital button/menu as it blocks first 3 sliders on canvas
* fixed slider not working issue : issue was due to all sliders being active at
 the same time, fixed by proper call of ui.bar.off() :jadonk#47
* added graph drawing functions : needs improvements
* changed the order of user leds
* commented non necessary console messages
Copy link
Owner

@jadonk jadonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just need to fix the one Makefile hack. Can you post to the mailing list giving the https://beagleboard.github.io/-based URL to try out the new BBUI and PBUI code once it is up there?

@jadonk jadonk merged commit 336c255 into jadonk:gh-pages Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants