Under Text you will find this option, at the very bottom: Reduce ... to x decimal places. It has been tucked away a bit, but works very well.
Posts made by RIDDSprojects
RE: Object has no attribute - Error
You helped me a lot! I had already looked several times for a firmware update, but it got stuck at v1.9.8. Thanks for your tip to use M5Burner Version 3 - I used M5Burner Version 2.5.1 myself. Confusing, but now clear! With, now v1.11.0, it works well!
Thank you! Also for your very quick response.
Object has no attribute - Error
It's very simple. The steps I do:
- Add unit (+) in UIFlow
- Add DIGI-CLOCK, default setting (Port A)
- Open tap 'Units (1)' (under 'Hardwares') > Digi Clock
- Get block 'digi_clock_0 init 12c address (0x30).
Error: File "<string>", line 8, in <module>
AttributeError: 'module' object has no attribute 'DIGI_CLOCK'
- Add other blocks; does not matter
- Grab another controller; makes no difference (also error).
Controlling directly with I2C is possible:
Tap 'Hardwares', I2C Master:
Block 1: i2c0 Master portA freq 400000
Block 2: i2c0 Set slave addr 0x30
Block 3: i2c0 Write reg 0x4 one byte 0xFF
Display result: 8. (and no error!)
Who can help me or has an addition?
Only "Font_Default" on the Core2?
I recently got the Core2, but run into limitations in UIFlow (current version V1.10.3). The font in the "Grapfic blocks" is limited to "Font_Default" when using the Core2. The labels can be set to other fonts. I prefer not to use labels because that limits me to using 1 screen.
Another solution is to put the generated code in an "Execute-block":
label0 = M5Label('Montserrat 10 t/m 48', x=0, y=35, color=0xffffff, font=FONT_MONT_26, parent=None)
but that is more of a temporary clumsy solution.
Can you as developers pay attention to this?
Thanks in advance!
RE: Set Atom Matrix block duplication bug - color reverts to white
It helps to select a different color first. Then you can still make copies. An annoying detour indeed.
RE: How to use Remote + Switch?
It's also my experience that it doesn't always work if you have multiple switches, input fields, buttons, etc. I see "Switch 4" with you, so I assume that there are multiple switches.
The solution I used in one of the projects with multiple input fields is to apply custom variables. Then suddenly it works! Hopefully that will help you too.
RE: Different Pages on M5Stack Core
This is quite simple on the Core: With the "Graphic" blocks it is easy to create graphical pages with "labels". Unfortunately, this is not so easy on the Core2 and functions are missing.
You do not use labels, but the following 3 blocks: [Lcd.clear]; [Font:...]; [Lcd.print "Label1" x: 0 y: 0 Color...]; [Lcd.print "..." x: 0 y: 20 Color...]; etc. You can first design them graphically by dragging labels onto the screen to determine the position, to then copy the screen with the graphic blocks, test whether all text appears on top of each other, and then edit the dragged labels. remove.
Use the "Functions" ("dosomething") blocks to create a page (Page1, Page2, etc). For example, by making "Setup" followed by a block "Page3", only page 3 will be visible, without using labels and you still have all the flexibility.
I hope that's how I answered your question. This is how I create multiple pages.