Author Topic: What are you doing with your Beta Shield?  (Read 16216 times)

defragster

  • Sr. Member
  • ****
  • Posts: 467
Re: What are you doing with your Beta Shield?
« Reply #30 on: July 03, 2014, 09:55:49 pm »
@netguy204 compiled AND WORKS ... with this edit to BAM.cpp line~14

//prog_
const uint8_t CIEL8[] PROGMEM = {
« Last Edit: July 03, 2014, 10:02:43 pm by defragster »

defragster

  • Sr. Member
  • ****
  • Posts: 467
Re: What are you doing with your Beta Shield?
« Reply #31 on: July 03, 2014, 10:15:05 pm »
@netguy204  :: AWESOME BAM shading work - interesting functional intuitive UI!

I edited BetaSketcher code at line 71 as follows to allow a PIXEL clear, and to protect the image from a shadow (or flash):

  if(!digitalRead(BUTTON)) {
    if (7 == screen[peny][penx])
      screen[peny][penx] = 0;  // Reset BRIGHT pixel to off
    else
      screen[peny][penx] = min(7, screen[peny][penx] + 1);
  }
 
  // clear the screen on significant light change if joystick DOWN
  if(abs(light_neutral - analogRead(LIGHT)) > light_neutral / 2 && (dy < LIVEZONE)) {
    memset(screen, 0, sizeof(screen));
  }
« Last Edit: July 03, 2014, 10:17:00 pm by defragster »

netguy204

  • Newbie
  • *
  • Posts: 20
Re: What are you doing with your Beta Shield?
« Reply #32 on: July 04, 2014, 05:06:12 am »
Not sure why you needed the PROGMEM edit (worked fine for me and I'm pretty sure there's nothing special about my configuration). But, pulled in that change for compatibility.

I want to think more about how to clear pixels. I like being able to hold down the joystick button as I sweep back and forth until the line is full bright. I tend to reintroduce dead pixels after this change.

I made the light sensor respond only to darkening. I was having the "rotating the board towards light clears my art" problem too. Things feel pretty good after this change.
« Last Edit: July 04, 2014, 05:24:29 am by netguy204 »

defragster

  • Sr. Member
  • ****
  • Posts: 467
Re: What are you doing with your Beta Shield?
« Reply #33 on: July 04, 2014, 12:40:42 pm »
I saw the sweep was affected - which is the joy of an etchasketch - I was started to code a check on change of x,y before and after the penXY updates.  So the 0 dim only happens when the joy is standing. 

This is better but still goes off on ends and uplifting pixel:
  int movexy=penx+(10*peny);
...
  if(!digitalRead(BUTTON)) {
    if (7 == screen[peny][penx] && (penx+(10*peny)==  movexy))

pitchakorn

  • Newbie
  • *
  • Posts: 7
Re: What are you doing with your Beta Shield?
« Reply #34 on: May 20, 2019, 09:53:01 pm »
Ok  good
ufabet

Busba1122

  • Full Member
  • ***
  • Posts: 109
Re: What are you doing with your Beta Shield?
« Reply #35 on: October 31, 2019, 09:28:26 pm »
Easy fun, play the game pleasantly. Click now.   :)

>>>  slotxo