All that does is make the display black, but there’s still a glow - the copper tape is an attempt to reduce this light leakage. Instead, there’s a bit of a hack in the sketch to optionally blank it between selected hard-coded hours (eg 7pm-7am). To keep the build simple, there’s no LDR to sense ambient light and dim the display. There is no backlight control and the thing is quite bright. The front plate is attached to the back plate with stacks of standoffs. But I decided to add some protection in the form of two laser-cut clear acrylic plates. This sandwich would actually have been enough, since it stands up OK. The LCD shield goes on top, and Uno underneath to create a quite thick sandwich. This gave me access to the pins I needed for the RTC and the two switches. There was a lot of software in this project so when the time came to go from prototype to final assembly I decided to go to the other extreme and keep it as simple and minimalistic. I connected SET/ADJ push-buttons to 10 & A5 and used 11 & 12 as SDA/SCL for a software I2C to the DS3231 real time clock module. Fortunately that leaves pins 10,11,12,13 and A5 free. This shield has a built-in SD-card reader, but no touch screen. ![]() The viewing angle is fairly important, from the wrong angle the display is quite washed out. The only other interaction is a) setting a “window” on the screen and b) filling it with colour data. As always, the trick is finding some code which successfully initialises the display (including orientation). The clocks use a simple automatic DLS adjustment class which takes a table of start/end dates. As well as setting the date and time it configures the red/yellow bin cycle (or none) Pressing Set from time display goes to the configuration screen. Pressing Adj from time display cycles through the faces (including a pseudo-face which randomly cycles through faces). The sketch uses all but around 100 bytes of the Uno’s program storage space. There was a little program memory left, so I squeezed in a very simple Pong Clock, again using code from an earlier project. The look is based on this font Triangle ClockĪn adaptation of an eariler project with a triangulated irregular network (TIN) style face, more pretty colours. The LCD colours are appealing, so I experiment with coloured cubes. The LCD inspired me to add in some additional clock “faces”: The angles come from skipping every 4th row of the digit data, so it’s acos(3/4)=41°, close enough to 45°! The time digits change with a detailed 3-step animation (top flap at 41°, 90° and 131°). It’s alternate weeks and I keep forgetting (this display is optional). As a bonus, across the middle there’s a blinking/flipping colon and also a coloured digit indicating the number of days until I need to put out either the rubbish bin (red) or the recycling (yellow). ![]() Also, in everyday life and at work, its modest matt black presence does not distract you or disrupt your productivity. With its large, highly visible font, you can check the time even from a distance. The time is in big digits across the bottom. Flip Clock is an aesthetic desktop digital clock app, it re-creates the behavior of a vintage flip clock with a modern, clean and minimal design. LICENSEĬode taken directly from SDL2 and SDL2_ttf should keep the same License with SDL2 and SDL2_ttf.Ĭode modified by myself should use Apache-2.0.The main clock display is the day, date and month in smallish flip-style digits across the top of the LCD (landscape mode). Paying extra thousands of dollars (for buying a Mac) to gain the right for developing apps for my own mobile device is ridiculous. Wanna an iOS version? Just buy your closed-source Tesla! I am not interested in users of closed-source systems. So I just write some Android.mk files for building. The original FlipClock uses Meson, but we cannot use Meson when building Android APP. The original FlipClock was used as a git submodule here to keep code clean, because we need to build SDL2 and SDL2_ttf's source inside this project (that's bad, but it's the only way). ![]() Java shim was taken directly from SDL2's android-project subdir and I won't modify them to keep consistnt with upstream. When the APP started, 2 fingers touch/double tap to switch between 12/24-hour clock format, 3 fingers touch to toggle second, rotate your phone to switch between landscape and portrait, don't forget to enable your phone's auto-rotate option. Open this project with Android Studio and try to build by yourself. Modern phones with non-square screens use OLED, and displaying similar patterns (FlipClock is one of those) will leave permanent mark on OLED screen.Ĭlone this repo, then run git submodule update -init to get FlipClock, then the font symlink under assets should work, if not, run ln -s app/jni/flipclock/dists/flipclock.ttf app/src/main/assets/flipclock.ttf. FlipClock Android The Android wrapper for FlipClock.įliqlo, the closed-source app for macOS has an iOS version, so I tried to make an Android version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |