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

Compile example error #4

Open
elsuizo opened this issue Dec 16, 2017 · 6 comments
Open

Compile example error #4

elsuizo opened this issue Dec 16, 2017 · 6 comments

Comments

@elsuizo
Copy link

elsuizo commented Dec 16, 2017

Hi Nice package!!!
compiling with : cargo run --example basic

error[E0599]: no method named `write_at` found for type `lcd_hd44780::driver::PinDriver<hd44780_simulator::pin::Pin, hd44780_simulator::pin::Pin, ([hd44780_simulator::pin::BitPin; 8], hd44780_simulator::Simulator), hd44780_simulator::Sleep>` in the current scope
  --> examples/basic.rs:36:12
   |
36 |     driver.write_at((1, 0), b"0123456789#@+-=*");

i tried to solve without success

@gyscos
Copy link
Owner

gyscos commented Dec 16, 2017

Indeed, thanks! This should be fixed now.

@elsuizo
Copy link
Author

elsuizo commented Dec 16, 2017

now i got this error:

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "Couldn\'t find any pixel format that matches the criterias."', /checkout/src/libcore/result.rs:906:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

maybe i got a old GPU

@gyscos
Copy link
Owner

gyscos commented Dec 16, 2017

Hmm sounds like a piston error? I don't have much experience with it.
If you can try, does the example from PistonDevelopers/piston_window work properly?

@elsuizo
Copy link
Author

elsuizo commented Dec 16, 2017

yeah i got the same error, dont worry i think is a Opengl problem. thanks!!!

@gyscos
Copy link
Owner

gyscos commented Dec 18, 2017

Considering the (very low) graphical requirements of this simulator, I'd be open to considering more compatible output engines.

@elsuizo
Copy link
Author

elsuizo commented Dec 18, 2017

yeah maybe sdl2 or sfml. The non graphical simulator works fine and the code is very clean.

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

No branches or pull requests

2 participants