PicoPixel

PicoPixel में libraries और reusable LVGL components की guide

PicoPixel में libraries कैसे काम करती हैं: file publish करने से उसके assets आपकी team के workspaces में reusable होते हैं, public नहीं. Library क्या रखती है, publish और link कैसे करें, published libraries कहां दिखती हैं, और कोई चीज team से बाहर जाने के सिर्फ दो तरीके.

PI PicoPixel
library components sharing reuse lvgl picopixel
अपडेटेड 2026-05-31
01 /09

Overview

हर PicoPixel file अपनी library रखती है: colors, fonts, images, animated images और components, जिन्हें वह use करती है, Assets panel में collected. अकेले में यह library उसी एक file की होती है. File को Publishing करने से उसकी library ऐसी चीज बनती है जिसे teammates reuse कर सकते हैं: दूसरी file से link करें और उसके assets उस file के own assets के साथ दिखाई देंगे.

PicoPixel editor जिसमें Assets panel local library के साथ दिख रहा है, जिसमें images, colors, fonts और speedometer component हैं, canvas पर Library Basic starter example titled speedometer UI के साथ
▸ Assets panel में file की local library — images, colors, fonts और components एक जगह, publish करके team से share करने के लिए ready.

यह guide बताती है कि library क्या है, Publish exactly क्या करता है (और उतना ही important, क्या नहीं करता), libraries publish और link कैसे करें, और वे कहां मिलती हैं. सबसे important बात:

WARNING

Publishing आपकी work को public नहीं बनाता. Publish file की library को सिर्फ आपकी team के लिए reusable बनाता है, यानी आपके PicoPixel workspace के लोग. यह internet पर post नहीं होती, publicly listed नहीं होती, और team के बाहर किसी को visible नहीं होती. Content team से बाहर सिर्फ उन तरीकों से जाती है जिन्हें आप deliberately करते हैं, guide के end में covered.

02 /09

Library क्या है

Library reusable assets का set है जो file के अंदर रहता है. Assets panel में आपकी file के own assets local library के नीचे दिखते हैं; यह हमेशा मौजूद है और default रूप से खुलती है.

जब आप दूसरी team library अपनी file में link करते हैं, तो वह local library के नीचे second, separately named section के रूप में आती है, उस library की file name heading के साथ (example, Animation Examples). Link होने के बाद Assets panel दोनों दिखाता है: आपकी file के own assets और linked library के assets, side by side, drag करने के लिए ready.

NOTE

इसे same cupboard की दो shelves समझें: local library वह है जो इस file ने बनाया, और हर linked library आपकी team की दूसरी file से उधार ली shelf है. Design छोड़े बिना दोनों से pull करें.

03 /09

Library क्या hold कर सकती है

File के Assets panel में जो भी है, publish पर library के साथ travel करता है. PicoPixel assets को इन sections में group करता है:

  • Images, file में added static graphics.
  • Animated images, multi-frame animated graphics.
  • Components, reusable LVGL widgets (नीचे देखें).
  • Colors, saved color swatches.
  • Fonts, fonts जिन्हें add और on-device use के लिए convert किया गया है.

File publish करें और ये सब आपकी team के लिए reusable हो जाते हैं, files के बीच copy-paste के बिना.

"component" क्या है

Component one or more widgets से बना reusable building block है. Single button या label एक widget है, लेकिन component कई widgets और layers को bundle कर सकता है, जैसे title, icon और value वाली styled card, और पूरी चीज को reusable unit की तरह treat करता है जिसे किसी भी screen में drop करते हैं.

हर component की main instance होती है. Main instance edit करें और change उस component की हर copy में flow करता है, जहां भी use हो, even दूसरी files में जो आपकी library link करती हैं. यही components को consistent UI के लिए powerful बनाता है: control एक बार define करें, everywhere reuse करें, one place में update करें.

TIP

अगर आप screens में वही छोटा widget cluster बार-बार rebuild कर रहे हैं, header bar, metric tile, labelled toggle, तो वह component बनने का इंतजार कर रहा है. Once build करें, और हर screen lockstep में रहेगी.

04 /09

File को library के रूप में publish करना

Publishing एक switch flip करता है: यह आपकी file को team के लिए shared library mark करता है.

PicoPixel Libraries dialog, Libraries tab में current file की library के next Publish button left में, और right में Animation Examples तथा New File 7 जैसी shared libraries link करने के लिए available
▸ Libraries dialog: left में अपनी file की library publish करें, या right में team की already-published library link करें.
  1. Libraries dialog खोलें. Assets panel से Add library button use करें (file में linked libraries या components already हों तो यह Manage library पढ़ता है).
  2. LIBRARIES tab पर LIBRARIES IN THIS FILE के नीचे देखें. आपको File library दिखेगी, current file की library, उसके next Publish button के साथ.
  3. Publish क्लिक करें.

Button Unpublish में बदलता है, confirming कि file अब shared library है जिसे team link कर सकती है. PicoPixel file में छोटा library badge भी add करता है: आप उसे workspace header के top-right में और Dashboard में file card पर देखेंगे, ताकि published files spot करना आसान हो.

NOTE

बाद में Unpublish क्लिक करने पर confirm पूछा जाता है, फिर library unlink होती है. PicoPixel पहले उस library के assets को हर using file में copy कर देता है, ताकि dependent files अचानक अपना relied-on content न खो दें.

05 /09

Team libraries ढूंढना

Published libraries पूरी team के लिए एक जगह gathered होती हैं.

  • Dashboard खोलें.
  • Left sidebar में Sources के नीचे Libraries क्लिक करें.

यह page आपकी current team में published हर library list करता है; team switch करें तो उस team की libraries दिखेंगी. यह catalogue है जिसे teammates available reusable चीजें देखने के लिए browse करते हैं.

PicoPixel Libraries dashboard जिसमें दो saved libraries हैं, उनके images, animated images, fonts और components listed हैं, other projects में import के लिए ready
▸ Dashboard की Libraries page आपकी team की हर published library और उसके assets summary list करती है.
06 /09

Another file में library reuse करना

Library publish होने के बाद team की कोई भी file उसे pull कर सकती है.

  1. वह file खोलें जिसमें build करना है.
  2. Assets panel में Add library (या Manage library) क्लिक करके Libraries dialog खोलें.
  3. SHARED LIBRARIES section में library ढूंढें; list लंबी हो तो Search shared libraries box मदद करता है, फिर link करने के लिए next + क्लिक करें.

Linked library अब आपके Assets panel में local library के नीचे अपनी named section के रूप में दिखाई देती है. उसके components, images, colors और fonts सीधे design में drag करें.

Linked library up to date रखना

जब linked library बदलती है, owner component edit करता है या color tweak करता है, तो updates खुद आप पर force नहीं होते. Libraries dialog का UPDATES tab linked libraries में newer changes list करता है, और Update button उन्हें आपकी file पर apply करता है जब आप ready हों. अगर कुछ नहीं बदला, tab simply बताता है कि update करने को कुछ नहीं.

07 /09

Privacy: यहां कुछ भी public नहीं बनता

यह part दोहराने लायक है, क्योंकि Publish word असल से बड़ा लगता है.

WARNING

Library publish करना उसे आपकी team से share करता है, और किसी से नहीं. Access authenticated है और team तक scoped है: कोई public link नहीं, public listing नहीं, और team के बाहर कोई published library reach नहीं कर सकता. "Published" का मतलब "मेरे teammates के लिए available," full stop.

आपकी बनाई चीज team से बाहर जाने के exactly two तरीके हैं, और दोनों चीजें आप choose करते हैं:

  1. आप खुद .picopixel file export और send करते हैं. Workspace menu से Export .picopixel कर सकते हैं, जो computer पर file download करता है. उस file के साथ क्या करते हैं, email, share, किसी को hand off, यह entirely आप पर है और PicoPixel के बाहर होता है.
  2. आप PicoPixel team को official submission करते हैं. अगर आप चाहते हैं कि design wider PicoPixel community से share हो, तो app.picopixel.io/#/settings/submit-template पर review के लिए submit करें. Community gallery में publish होने से पहले team हर submission review करती है. Form needs और granted rights के लिए How to submit a template देखें.

इन दो deliberate steps के अलावा आपकी files और libraries team के अंदर रहती हैं.

08 /09

Community templates और ready-made libraries

Scratch से start करना जरूरी नहीं. PicoPixel templates gallery में templates, UI kits, examples, sprites, animated images और full app files का growing collection है, PicoPixel team और wider community द्वारा created. हर one regular .picopixel file है जिसे आप open, customize और अपने project का starting point बना सकते हैं.

PicoPixel templates gallery जिसमें Full App, Example, UI Kit, Template, Sprite, Animated Image और Widget category filters हैं, Events Example, Fonts Example, Speedometer Example और Animation Examples project cards के साथ
▸ Templates gallery browse करें और ready-made projects, UI kits तथा components find करें जिन्हें import करके build कर सकते हैं.

आप जो भी template open करते हैं वह library भी बन सकता है: publish करें और आपकी team को उसके components, fonts, colors और images का access मिलेगा, rebuild किए बिना. यह new project bootstrap करने या existing one में polished elements add करने का fastest तरीका है.

Templates find, import और customize करने की full walkthrough के लिए How to use PicoPixel templates, UI kits, and full apps देखें.

09 /09

आगे कहां जाएं

आगे पढ़ें

जारी रखें।

PicoPixel में pets कैसे use करें thumbnail
PICOPIXEL

PicoPixel में pets कैसे use करें

Pets ready-made animated sprites हैं जिनमें multiple modes होते हैं जिन्हें किसी भी condition पर trigger कर सकते हैं. Directory से एक चुनें, project में add करें, और उसे अपने device की activity पर react कराएं: data fetch, overheating, code review, जो चाहें.

pets · sprites · picopixel
PicoPixel templates, UI kits और full apps कैसे use करें thumbnail
PICOPIXEL

PicoPixel templates, UI kits और full apps कैसे use करें

PicoPixel templates, UI kits, examples, sprites, widgets और full app files ढूंढें, फिर उन्हें open, download, import, customize और अपने device के लिए LVGL C code के रूप में export करें.

templates · ui-kits · full-apps
sprite क्या है? thumbnail
PICOPIXEL

sprite क्या है?

जानें कि sprites क्या होते हैं, multi-state animated widgets कैसे बनाते हैं, और उन्हें projects में फिर से कैसे use करते हैं.

sprite · picopixel