GithubHelp home page GithubHelp logo

Comments (8)

dnlmlr avatar dnlmlr commented on August 18, 2024

Could you clarify what you mean by "skip the rest of the program"? Does the program exit after reaching LcdClean or do you mean something else?

from ev3-api.

Electrenator avatar Electrenator commented on August 18, 2024

The program exits when reaching the LcdClean function.

from ev3-api.

dnlmlr avatar dnlmlr commented on August 18, 2024

That is of course not supposed to happen. If this is an issue with the API code, it seems really strange though that this never occourred before. Do the other LCD related functions (Ev3Printf or the older LcdPrintf) work? Would you mind providing code for a minimal functional program that produces the error for you? That might help understanding what goes wrong and/or allow to maybe replicate the problem.

from ev3-api.

Electrenator avatar Electrenator commented on August 18, 2024

Have never tried to use Ev3Printf, because it wasn't in the commands.pdf and can't test it at the moment but I've used this code to get the result that I had described;

#include <ev3.h>

int main(void){
	int x, y;

	for(x = 0; x < 10; x++){
		LcdClean();
		for(y = 0; y < 8; y++){
			if(x % 2 == 0)
			{
				LcdPrintf(1, "Hello World!\n");
				LcdPrintf(0, "Hello World!\n");
			}else{
				LcdPrintf(0, "Hello World!\n");
				LcdPrintf(1, "Hello World!\n");
			}
		}
		Wait(MS_500);
	}
}

from ev3-api.

Electrenator avatar Electrenator commented on August 18, 2024

Yes, Ev3Printf and LcdPrintf work with the above code

from ev3-api.

a3f avatar a3f commented on August 18, 2024

Did you figure out why LcdClean behaved strangely for you? Can this issue be closed?

from ev3-api.

Electrenator avatar Electrenator commented on August 18, 2024

No, I didn't figure it out in the end. Could have been something with the device itself because it did work with other EV3s that I could test it on.

from ev3-api.

a3f avatar a3f commented on August 18, 2024

Possibly different firmware versions? Could you check?

from ev3-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.