Skip to content

Patches fssnap-1.0 / 7seg-1.0 #8

@RudolphRiedel

Description

@RudolphRiedel

Posting here since I am using the patch found in patch_b2tf2.py, I converted it to binary for use from SD card.
I am using the patch with my own library written in C, running on a STM32F407 connected to a VM820C.

I started using the patch with CMD_FSSNAPSHOT and it mostly works fine.

  • writing takes a while when the file does not exist
  • saving "snapshot.bmp" results in a file "SNAPSHOT.BMP
  • the bitmap file appears to have extra data between the header and the binary data that confuses some programs such as IrfanView

The second command I implemented is CMD_SEVENSEG and it is not working properly.
It displays nothing on a white background and the segments are not clean when using a black rectangle underneath.

        EVE_color_rgb(BLACK);

        EVE_begin(EVE_RECTS);
        EVE_vertex2f(650, 220);
        EVE_vertex2f(740, 330);
        EVE_end();

        EVE_cmd_fgcolor(RED);
        EVE_cmd_bgcolor(0x808080);
        EVE_cmd_sevenseg(660, 230, 40, 6);
        EVE_cmd_sevenseg(720, 230, 40, 4);

And the result is this with the original saved file opened in Paint.net and zoomed in:
Image

Not only does the second digit vanishes on the white background, there are red dots that do not belong and the left segments on the second digit are drawn incorrectly.

And as a sidenote, I wonder why the black rectangle has a grey outline.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions