GoBeyond with Your BrainPad

If you want to take your BrainPad to the next level and program it using C# or VB with Microsoft Visual Studio. You can always follow the instructions here:
https://docs.brainpad.com/go-beyond/system-setup.html

But if you’re like me and don’t always want to read it. Here’s a cooler video to explain.

3 Likes

Hello Greg

There is a problem with this example. The code does not draw a heart. He draws a square.

namespace BrainPadDemo
{
    class Program
    {
        static void Main()
        {
            BrainPad.Display.DrawPoint(64, 32);
            BrainPad.Display.DrawLine(0, 52, 127, 52);
            BrainPad.Display.DrawRectangle(48, 20, 32, 24);
            BrainPad.Display.DrawCircle(64, 32, 20);

            byte[] pictureData = new byte[]
            { 0, 0, 1, 0, 0 ,0, 1, 0, 0,
      0, 1, 0, 1, 0, 1, 0, 1, 0,
      1, 0, 0, 0, 1, 0, 0, 0, 1,
      1, 0, 0, 0, 1, 0, 0, 0, 1,
      1, 0, 0, 0, 0, 0, 0, 0, 1,
      0, 1, 0, 0, 0, 0, 0, 1, 0,
      0, 0, 1, 0, 0, 0, 1, 0, 0,
      0, 0, 0, 1, 0, 1, 0, 0, 0,
      0, 0, 0, 0, 1, 0, 0, 0, 0,
            };

            BrainPad.Display.DrawPicture(0, 0, BrainPad.Display.CreatePicture(9, 9, pictureData));
            BrainPad.Display.DrawPicture(10, 10, BrainPad.Display.CreateScaledPicture(9, 9, pictureData, 2));
            BrainPad.Display.RefreshScreen();
        }
    }
}

See beelow

20181217_084701

2 Likes

This was broken in the latest TinyCLR-OS release. I created an issue and it should be fixed in the next release. In the meantime the Display Picture function does work when using TinyCLR-OS v0.12.

Ok. Thank’s Greg.