Main Site Documentation

GoBeyond with Your BrainPad


#1

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.


#2

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


#3

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.


#4

Ok. Thank’s Greg.