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

Doesn't work with propboe #12

Closed
jjinkou2 opened this issue Oct 29, 2018 · 6 comments
Closed

Doesn't work with propboe #12

jjinkou2 opened this issue Oct 29, 2018 · 6 comments
Assignees
Labels

Comments

@jjinkou2
Copy link

I don't know why but i can't make any of them work on my propboe. VGA is connected from 8-15. i know it works since i could compile a previous version: for instance your driver here works correctly https://forums.parallax.com/discussion/146678/vga-launcher-vga-demos-for-propboe-users

@konimaru konimaru self-assigned this Oct 29, 2018
@konimaru
Copy link
Owner

konimaru commented Oct 29, 2018

It's not just a question of wiring your stuff up. There is also a software part to it (i.e. vcfg needs to be setup with the correct pin group, for me it's usually pin group 2, i.e. 16-23).

If you can tell me which driver you want to use I'll have a look and let you know what needs changing.

@jjinkou2
Copy link
Author

jjinkou2 commented Oct 29, 2018

i would like to use the 50HxRAM.
I changed :

  vpin    = $0FC                                ' pin group mask
  vgrp    = 2                                   ' pin group
sgrp = 2 ' pin group sync

to

  vpin    = $0FF                                ' pin group mask
  vgrp    = 1                                   ' pin group
sgrp = 1                                     ' pin group sync

without result.

mind if i ask for a suggestion ? why not integrate a pingroup inside the init . So when you call it inside the demo it could be:
vga.init(pingroup).

So that the user of the driver never mess inside the driver.

But i know that would break every demo. and may be that is intentional from your part.

[EDIT]
I forget to mention that with propeller-ide i couldn't load into ram. so i manually do it like following:

openspin xxxdemo.spin
propeller-load -r xxxdemo.binary

@konimaru
Copy link
Owner

[valid for version 0.8]
If you just want to move pin group then you should only touch vgrp and sgrp, leave vpin alone ($FC). In your case that would be $FC/1/1. The $FF setting demands different pin groups for sync and video which I believe is not the case for your setup.

re: parameters, at the time there were basically two ways of doing things, parameters or constants. I opted for the latter. That being said, there is at least one driver which does take the group as a parameter but that's simply because the user needed 4 instances of said driver for his multi-display console (and would otherwise have needed 4 drivers instead of one). Depending on how strong you feel about it, just file a enhancement request and I can have a look.

@jjinkou2
Copy link
Author

i'll test tonight your modifications when i'm at home .
no need to change anything , i was just curious about the rational behind.

thank you.

@jjinkou2
Copy link
Author

jjinkou2 commented Oct 29, 2018

Still have a problem with $FC/1/1. I have only these leds switched on (which shows that VGA is receiving signal on them):

  • pin 9
  • pin 10 & 11 corresponding B0B1(blue OK)
  • only pin 13 (G1)
    I have no signal on 8, 12,14,15

[Edit]
it works now, i was using propeller-ide which compile with bst.
I compiled it manually with openspn and propeller-load, and magic happends.

You can close this thread.

@konimaru
Copy link
Owner

Ah, would have been good to know. bst has a problem with PASM like long +4 which is downgraded to long 0. Good to know you got it working. Have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants